update yt-dlp, fix channel entries extractor

This commit is contained in:
simon 2022-11-22 19:11:58 +07:00
parent 5ed80d983d
commit d0124c1a5c
No known key found for this signature in database
GPG Key ID: 2C15AA5E89985DD4
2 changed files with 3 additions and 3 deletions

View File

@ -80,12 +80,12 @@ class YoutubePlaylist(YouTubeItem):
downloaded = entry["id"] in self.all_youtube_ids downloaded = entry["id"] in self.all_youtube_ids
else: else:
downloaded = False downloaded = False
if not entry["uploader"]: if not entry["channel"]:
continue continue
to_append = { to_append = {
"youtube_id": entry["id"], "youtube_id": entry["id"],
"title": entry["title"], "title": entry["title"],
"uploader": entry["uploader"], "uploader": entry["channel"],
"idx": idx, "idx": idx,
"downloaded": downloaded, "downloaded": downloaded,
} }

View File

@ -10,4 +10,4 @@ requests==2.28.1
ryd-client==0.0.6 ryd-client==0.0.6
uWSGI==2.0.21 uWSGI==2.0.21
whitenoise==6.2.0 whitenoise==6.2.0
yt_dlp==2022.10.4 yt_dlp==2022.11.11