2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-04-16 16:56:04 +00:00

71_YAMAHA_NP.pm: Provide entire http link to Player AlbumArt.

git-svn-id: https://svn.fhem.de/fhem/trunk@7679 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
ra666ack 2015-01-23 18:57:37 +00:00
parent 67efa8c39e
commit c4308b3af5
2 changed files with 4 additions and 1 deletions

View File

@ -1,5 +1,6 @@
# Add changes at the top of the list. Keep it in ASCII, and 80-char wide.
# Do not insert empty lines here, update check depends on it.
- changed: 71_YAMAHA_NP.pm: Provide entire http link to Player AlbumArt.
- changed: 71_YAMAHA_NP.pm: Minor code improvements.
- changed: 71_YAMAHA_NP.pm: Perl code clean-up after 'perlcritic' check.
- feature: 71_YAMAHA_NP.pm: New readings: tunerModeDAB, tunerBitrateDAB, tunerAudioModeDAB, tunerFrequencyDAB. New internals: NP_ICON_x, UDN, Friendly_Name

View File

@ -948,7 +948,9 @@ sub YAMAHA_NP_ParseResponse
}
if($data =~ /<Album_ART><URL>(.+)<\/URL><ID>(.+)<\/ID><Format>(.+)<\/Format><\/Album_ART>/)
{
readingsBulkUpdate($hash, "playerAlbumArtURL", YAMAHA_NP_html2txt($1));
my $address = $hash->{helper}{ADDRESS};
readingsBulkUpdate($hash, "playerAlbumArtURL", "http://".$address."".YAMAHA_NP_html2txt($1));
readingsBulkUpdate($hash, "playerAlbumArtID", YAMAHA_NP_html2txt($2));
readingsBulkUpdate($hash, "playerAlbumArtFormat", YAMAHA_NP_html2txt($3));
}