We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 79525ce commit b9968f8Copy full SHA for b9968f8
custom_components/mass_queue/actions.py
@@ -130,11 +130,11 @@ def _format_queue_item(self, queue_item: dict) -> dict:
130
else:
131
media_album_name = media_album.get('name', '')
132
media_content_id = media['uri']
133
- if 'image' in queue_item:
134
- img = queue_item['image']
135
- media_image = img.get('path')
136
- else:
+ img = queue_item.get('image')
+ if image is None:
137
media_image = ''
+ else:
+ media_image = img.get('path', '')
138
139
artists = media['artists']
140
artist_names = [artist['name'] for artist in artists]
0 commit comments