2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-01-31 12:49:34 +00:00

contrib/98_SB_PLAYER.pm: fixed ftuiMedialist reading

git-svn-id: https://svn.fhem.de/fhem/trunk@14583 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
ChrisD 2017-06-27 18:38:12 +00:00
parent 3ada87154f
commit 9284c5601f

View File

@ -698,6 +698,8 @@ sub SB_PLAYER_Define( $$ ) {
$hash,
0 );
notifyRegexpChanged($hash, "global"); # CD 0080
return( undef );
}
@ -1823,6 +1825,9 @@ sub SB_PLAYER_Parse( $$ ) {
$hash->{helper}{playlistInfo}{$_}{artist}=~s/\"//g;
$hash->{helper}{playlistInfo}{$_}{title}=~s/\"//g;
$hash->{helper}{playlistInfo}{$_}{album}=~s/\"//g;
$hash->{helper}{playlistInfo}{$_}{artist} =~ s{\\}{\\\\}g; # CD 0081
$hash->{helper}{playlistInfo}{$_}{title} =~ s{\\}{\\\\}g; # CD 0081
$hash->{helper}{playlistInfo}{$_}{album} =~ s{\\}{\\\\}g; # CD 0081
$ftuimedialist.="{\"Artist\":\"".$hash->{helper}{playlistInfo}{$_}{artist}."\",";
$ftuimedialist.="\"Title\":\"".$hash->{helper}{playlistInfo}{$_}{title}."\",";
$ftuimedialist.="\"Album\":\"".$hash->{helper}{playlistInfo}{$_}{album}."\",";