2
0
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:
markusbloch 2014-05-16 19:32:55 +00:00
parent 123152ada7
commit 171cafb70d

View File

@ -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);