fix empty playlist response, #858

This commit is contained in:
Simon 2025-01-03 18:02:18 +07:00
parent 2dbce9da4d
commit 1f74e02c92
No known key found for this signature in database
GPG Key ID: 2C15AA5E89985DD4
1 changed files with 3 additions and 0 deletions

View File

@ -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