aboutsummaryrefslogtreecommitdiffstats
path: root/yt_radio.py
diff options
context:
space:
mode:
authorPinapelz <yukais@pinapelz.com>2026-02-19 02:15:42 -0800
committerPinapelz <yukais@pinapelz.com>2026-02-19 02:15:42 -0800
commit046354dd6e9a6966a49063c1c3053c754cb901f8 (patch)
treea5c6980d942ddfa1da0d869214e28771556b0316 /yt_radio.py
parentcfe1babc8339d93d61eb890d0186cf62601a67f4 (diff)
fix: missing id when video is not cached
Diffstat (limited to 'yt_radio.py')
-rw-r--r--yt_radio.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/yt_radio.py b/yt_radio.py
index f4bd9a0..da479a6 100644
--- a/yt_radio.py
+++ b/yt_radio.py
@@ -148,7 +148,7 @@ def _ensure_metadata(index):
def _stream_track(index):
url = PLAYLIST[index]
_ensure_metadata(index)
- meta = METADATA.get(index, {"title": f"Track {index+1}", "artist": "Unknown", "duration": -1})
+ meta = METADATA.get(index, {"title": f"Track {index+1}", "artist": "Unknown", "duration": -1, "id": ""})
NOW_PLAYING["index"] = index
NOW_PLAYING["title"] = meta["title"]
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage