mirror of
https://github.com/Electric-Special/ha-core.git
synced 2026-03-21 08:06:00 +01:00
Fix track icons for Apps and Radios in Squeezebox (#151001)
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user