diff options
| author | Pinapelz <yukais@pinapelz.com> | 2026-02-19 02:15:42 -0800 |
|---|---|---|
| committer | Pinapelz <yukais@pinapelz.com> | 2026-02-19 02:15:42 -0800 |
| commit | 046354dd6e9a6966a49063c1c3053c754cb901f8 (patch) | |
| tree | a5c6980d942ddfa1da0d869214e28771556b0316 /yt_radio.py | |
| parent | cfe1babc8339d93d61eb890d0186cf62601a67f4 (diff) | |
fix: missing id when video is not cached
Diffstat (limited to 'yt_radio.py')
| -rw-r--r-- | yt_radio.py | 2 |
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"] |
