From 2868dae09d824b8e24d76d0cc4f585ef0227aa4e Mon Sep 17 00:00:00 2001 From: Simon Date: Thu, 10 Jul 2025 17:31:37 +0700 Subject: [PATCH] raise on playlist channel ID extraction error, #1008 --- backend/playlist/src/index.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/backend/playlist/src/index.py b/backend/playlist/src/index.py index 5c892509..4f5a1951 100644 --- a/backend/playlist/src/index.py +++ b/backend/playlist/src/index.py @@ -70,6 +70,9 @@ class YoutubePlaylist(YouTubeItem): print(f"{self.youtube_id}: thumbnail extraction failed") playlist_thumbnail = False + if not self.youtube_meta.get("channel_id"): + raise ValueError("Failed to extract Channel ID for Playlist") + self.json_data = { "playlist_id": self.youtube_id, "playlist_active": True,