2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-01-31 18:59:33 +00:00

99_sonos2mqttUtils.pm:bugfix

git-svn-id: https://svn.fhem.de/fhem/trunk@26971 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
Otto123 2023-01-06 08:05:45 +00:00
parent 1eae508e44
commit b6c5eba364

View File

@ -343,7 +343,7 @@ if ($reading eq 'Input') {
my $currentTrack_TrackUri = ReadingsVal($name,'currentTrack_TrackUri',''); my $currentTrack_TrackUri = ReadingsVal($name,'currentTrack_TrackUri','');
return $currentTrack_TrackUri =~ 'x-rincon-stream' return $currentTrack_TrackUri =~ 'x-rincon-stream'
? 'LineIn': $currentTrack_TrackUri =~ 'spdif' ? 'LineIn': $currentTrack_TrackUri =~ 'spdif'
? 'TV' : ReadingsVal($name,'enqueuedMetadata_UpnpClass','') eq 'object.item.audioItem.audioBroadcast' or $currentTrack_TrackUri =~ 'x-rincon-mp3radio' ? 'TV' : (ReadingsVal($name,'enqueuedMetadata_UpnpClass','') eq 'object.item.audioItem.audioBroadcast') or ($currentTrack_TrackUri =~ 'x-rincon-mp3radio')
? 'Radio' : 'Playlist' ? 'Radio' : 'Playlist'
} }
} }