Skip to content

Commit

Permalink
fixed station logo
Browse files Browse the repository at this point in the history
  • Loading branch information
philippspinnler committed Sep 20, 2024
1 parent f803b64 commit efa5c29
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/plugins/sonos.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit efa5c29

Please sign in to comment.