File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed
homeassistant/components/squeezebox Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -221,12 +221,16 @@ def _get_item_thumbnail(
221221) -> str | None :
222222 """Construct path to thumbnail image."""
223223 item_thumbnail : str | None = None
224- if artwork_track_id := item .get ("artwork_track_id" ):
224+ track_id = item .get ("artwork_track_id" ) or (
225+ item .get ("id" ) if item_type == "track" else None
226+ )
227+
228+ if track_id :
225229 if internal_request :
226- item_thumbnail = player .generate_image_url_from_track_id (artwork_track_id )
230+ item_thumbnail = player .generate_image_url_from_track_id (track_id )
227231 elif item_type is not None :
228232 item_thumbnail = entity .get_browse_image_url (
229- item_type , item ["id" ], artwork_track_id
233+ item_type , item ["id" ], track_id
230234 )
231235
232236 elif search_type in ["apps" , "radios" ]:
You can’t perform that action at this time.
0 commit comments