From 1f74e02c920aed4537c193092809d1069c0ed467 Mon Sep 17 00:00:00 2001 From: Simon Date: Fri, 3 Jan 2025 18:02:18 +0700 Subject: [PATCH] fix empty playlist response, #858 --- backend/channel/src/index.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/backend/channel/src/index.py b/backend/channel/src/index.py index 76e96412..00af483b 100644 --- a/backend/channel/src/index.py +++ b/backend/channel/src/index.py @@ -290,6 +290,9 @@ class YoutubeChannel(YouTubeItem): ) obs = {"skip_download": True, "extract_flat": True} playlists = YtWrap(obs, self.config).extract(url) + if not playlists: + return + all_entries = [(i["id"], i["title"]) for i in playlists["entries"]] self.all_playlists = all_entries