mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-23 20:52:13 +00:00
YAMAHA_AVR: also evaluate Radio_Text_B for currentTitle at input TUNER
git-svn-id: https://svn.fhem.de/fhem/trunk@5875 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
123152ada7
commit
171cafb70d
@ -68,6 +68,7 @@ YAMAHA_AVR_GetStatus($;$)
|
||||
my $name = $hash->{NAME};
|
||||
my $power;
|
||||
|
||||
|
||||
$local = 0 unless(defined($local));
|
||||
|
||||
return "" if(!defined($hash->{helper}{ADDRESS}) or !defined($hash->{helper}{OFF_INTERVAL}) or !defined($hash->{helper}{ON_INTERVAL}));
|
||||
@ -218,7 +219,22 @@ YAMAHA_AVR_GetStatus($;$)
|
||||
}
|
||||
elsif($infos =~ /<Meta_Info>.*?<Radio_Text_A>(.+?)<\/Radio_Text_A>.*?<\/Meta_Info>/)
|
||||
{
|
||||
my $tmp = $1;
|
||||
|
||||
if($infos =~ /<Meta_Info>.*?<Radio_Text_A>(.+?)<\/Radio_Text_A>.*?<Radio_Text_B>(.+?)<\/Radio_Text_B>.*?<\/Meta_Info>/)
|
||||
{
|
||||
readingsBulkUpdate($hash, "currentTitle", YAMAHA_AVR_html2txt($1." ".$2));
|
||||
}
|
||||
else
|
||||
{
|
||||
readingsBulkUpdate($hash, "currentTitle", YAMAHA_AVR_html2txt($tmp));
|
||||
}
|
||||
}
|
||||
elsif($infos =~ /<Meta_Info>.*?<Radio_Text_B>(.+?)<\/Radio_Text_B>.*?<\/Meta_Info>/)
|
||||
{
|
||||
|
||||
readingsBulkUpdate($hash, "currentTitle", YAMAHA_AVR_html2txt($1));
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user