From 046354dd6e9a6966a49063c1c3053c754cb901f8 Mon Sep 17 00:00:00 2001 From: Pinapelz Date: Thu, 19 Feb 2026 02:15:42 -0800 Subject: fix: missing id when video is not cached --- yt_radio.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"] -- cgit v1.2.3