From efa5c293c8252e87bd5f1181308ab09d9ac8f5ac Mon Sep 17 00:00:00 2001 From: Philipp Spinnler Date: Fri, 20 Sep 2024 14:51:43 +0200 Subject: [PATCH] fixed station logo --- app/plugins/sonos.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/plugins/sonos.py b/app/plugins/sonos.py index 6943590..24820dc 100644 --- a/app/plugins/sonos.py +++ b/app/plugins/sonos.py @@ -26,11 +26,11 @@ def get_data(): artist = current_media["channel"] song = current_track["title"] - sid_match = re.search(r"sid=([^\&]+)", current_media["uri"]) + sid_match = re.search(r"s\d{5}", current_media["uri"]) if sid_match: - sid = sid_match.group(1) - image = f"https://cdn-profiles.tunein.com/{sid}/images/logoq.jpg" + sid = sid_match.group() + image = f"https://cdn-profiles.tunein.com/{sid}/images/logod.jpg" else: image = None elif device.is_playing_tv: