Skip to content

Commit 489cbdb

Browse files
authored
Merge pull request #94 from droans/next
Fix: Some issues getting playlist images
2 parents d6ea089 + ba89f21 commit 489cbdb

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

custom_components/mass_queue/utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,8 +156,8 @@ def find_image_from_metadata(data: dict, remotely_accessible: bool):
156156

157157
def find_image_from_album(data: dict, remotely_accessible: bool):
158158
"""Attempts to find the image via the album key."""
159-
album = data.get("album", {})
160-
metadata = album.get("metadata", {})
159+
album = data.get("album") or {}
160+
metadata = album.get("metadata") or {}
161161
img_data = metadata.get("images")
162162
if img_data is None:
163163
return None

0 commit comments

Comments
 (0)