From: Maxim Raznatovski Date: Thu, 30 Jan 2025 11:46:21 +0000 (+0100) Subject: Feat: add support for monochrome provider icons (#1911) X-Git-Url: https://git.kitaultman.com/?a=commitdiff_plain;h=631e6ce7f3748c38bca919aa9f441ded15bc8098;p=music-assistant-server.git Feat: add support for monochrome provider icons (#1911) --- diff --git a/music_assistant/mass.py b/music_assistant/mass.py index 9b081c0e..36697714 100644 --- a/music_assistant/mass.py +++ b/music_assistant/mass.py @@ -695,6 +695,11 @@ class MusicAssistant: icon_path = os.path.join(provider_path, "icon_dark.svg") if await isfile(icon_path): provider_manifest.icon_svg_dark = await get_icon_string(icon_path) + # check for icon_monochrome file + if not provider_manifest.icon_svg_monochrome: + icon_path = os.path.join(provider_path, "icon_monochrome.svg") + if await isfile(icon_path): + provider_manifest.icon_svg_monochrome = await get_icon_string(icon_path) self._provider_manifests[provider_manifest.domain] = provider_manifest LOGGER.debug("Loaded manifest for provider %s", provider_manifest.name) except Exception as exc: