Fix empty image when Sonos is doing nothing.
This commit is contained in:
parent
f54f68903d
commit
58e063a1b6
1 changed files with 2 additions and 0 deletions
|
@ -653,6 +653,8 @@ class SonosDevice(MediaPlayerDevice):
|
|||
|
||||
def _format_media_image_url(self, url, fallback_uri):
|
||||
if url in ('', 'NOT_IMPLEMENTED', None):
|
||||
if fallback_uri in ('', 'NOT_IMPLEMENTED', None):
|
||||
return None
|
||||
return 'http://{host}:{port}/getaa?s=1&u={uri}'.format(
|
||||
host=self._player.ip_address,
|
||||
port=1400,
|
||||
|
|
Loading…
Add table
Reference in a new issue