mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-01-31 06:39:11 +00:00
99_sonos2mqttUtils.pm:bugfix and x-.*radio
git-svn-id: https://svn.fhem.de/fhem/trunk@26976 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
68d4d90120
commit
7036b3e34b
@ -343,7 +343,7 @@ if ($reading eq 'Input') {
|
||||
my $currentTrack_TrackUri = ReadingsVal($name,'currentTrack_TrackUri','');
|
||||
return $currentTrack_TrackUri =~ 'x-rincon-stream'
|
||||
? '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-.*radio')
|
||||
? 'Radio' : 'Playlist'
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user