From 837e7affa7ba922710d0939fc800bc6333ae4887 Mon Sep 17 00:00:00 2001 From: Erik Date: Sat, 23 Jan 2016 17:48:14 +0100 Subject: [PATCH] only query artwork by track_id if id is available (7.7 vs 7.9 version issue?) --- homeassistant/components/media_player/squeezebox.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/homeassistant/components/media_player/squeezebox.py b/homeassistant/components/media_player/squeezebox.py index 0494b29fedb..69b15251144 100644 --- a/homeassistant/components/media_player/squeezebox.py +++ b/homeassistant/components/media_player/squeezebox.py @@ -202,9 +202,12 @@ class SqueezeBoxDevice(MediaPlayerDevice): """ Image url of current playing media. """ if 'artwork_url' in self._status: media_url = self._status['artwork_url'] - else: + elif "id" in self._status: media_url = ('/music/{track_id}/cover.jpg').format( track_id=self._status["id"]) + else: + media_url = ('/music/current/cover.jpg?player={player}').format( + player=self.id) base_url = 'http://{server}:{port}/'.format( server=self._lms.host,