Additional radio schemes for sonos (#12886)
This commit is contained in:
1 parent
36e9f523d1
commit
a147401034
1 file changed
+4
-2
@@ -323,8 +323,10 @@ def _timespan_secs(timespan):
|
||||
|
||||
def _is_radio_uri(uri):
|
||||
"""Return whether the URI is a radio stream."""
|
||||
return uri.startswith('x-rincon-mp3radio:') or \
|
||||
uri.startswith('x-sonosapi-stream:')
|
||||
radio_schemes = (
|
||||
'x-rincon-mp3radio:', 'x-sonosapi-stream:', 'x-sonosapi-radio:',
|
||||
'hls-radio:')
|
||||
return uri.startswith(radio_schemes)
|
||||
|
||||
|
||||
class SonosDevice(MediaPlayerDevice):
|
||||
|
||||
Reference in new issue
Block a user