Fix track icons for Apps and Radios in Squeezebox (#151001)

This commit is contained in:
peteS-UK
2025-09-11 17:37:21 +01:00
committed by GitHub
parent bcfa7a7383
commit 254694b024

View File

@@ -248,11 +248,16 @@ def _get_item_thumbnail(
item_type: str | MediaType | None,
search_type: str,
internal_request: bool,
known_apps_radios: set[str],
) -> str | None:
"""Construct path to thumbnail image."""
item_thumbnail: str | None = None
track_id = item.get("artwork_track_id") or (
item.get("id") if item_type == "track" else None
item.get("id")
if item_type == "track"
and search_type not in known_apps_radios | {"apps", "radios"}
else None
)
if track_id:
@@ -357,6 +362,7 @@ async def build_item_response(
item_type=item_type,
search_type=search_type,
internal_request=internal_request,
known_apps_radios=browse_data.known_apps_radios,
)
children.append(child_media)