Fix error in squeezebox media browser album art (#126346)

Fix error in squeezebox media browser album art part 2
pull/125763/head
Raj Laud 2024-09-22 10:31:37 -04:00 committed by GitHub
parent 78459991bf
commit 3f13f6ed12
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -131,12 +131,12 @@ async def build_item_response(
can_expand = False
can_play = True
if artwork_track_id := item.get("artwork_track_id") and item_type:
if artwork_track_id := item.get("artwork_track_id"):
if internal_request:
item_thumbnail = player.generate_image_url_from_track_id(
artwork_track_id
)
else:
elif item_type is not None:
item_thumbnail = entity.get_browse_image_url(
item_type, item_id, artwork_track_id
)