mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-01-31 18:59:33 +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
@ -67,6 +67,7 @@ YAMAHA_AVR_GetStatus($;$)
|
||||
my ($hash, $local) = @_;
|
||||
my $name = $hash->{NAME};
|
||||
my $power;
|
||||
|
||||
|
||||
$local = 0 unless(defined($local));
|
||||
|
||||
@ -217,9 +218,24 @@ YAMAHA_AVR_GetStatus($;$)
|
||||
readingsBulkUpdate($hash, "currentTitle", YAMAHA_AVR_html2txt($1));
|
||||
}
|
||||
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
|
||||
{
|
||||
readingsBulkUpdate($hash, "currentTitle", "", 0);
|
||||
|
Loading…
Reference in New Issue
Block a user