Merge pull request #5558 from andrey-git/sonos

Fix empty image when Sonos is doing nothing.
This commit is contained in:
Robbie Trencheny 2017-01-25 13:41:41 -08:00 committed by GitHub
commit f25b34cafe

View File

@ -655,6 +655,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,