only query artwork by track_id if id is available (7.7 vs 7.9 version issue?)

pull/990/head
Erik 2016-01-23 17:48:14 +01:00
parent 0042e7725d
commit 837e7affa7
1 changed files with 4 additions and 1 deletions

View File

@ -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,