This commit is contained in:
Cyberes 2023-01-21 15:07:27 -07:00
parent b925493ef2
commit 6aa5656a6f
No known key found for this signature in database
GPG Key ID: 194A1C358AACFC39
1 changed files with 1 additions and 2 deletions

View File

@ -178,7 +178,6 @@ if args.daemon:
for i, target_url in tqdm(enumerate(url_list), total=len(url_list), position=0, desc='Inputs', disable=not args.daemon):
logger.info('Fetching playlist...')
status_bar.set_description_str('Fetching playlist...')
playlist = yt_dlp.playlist_contents(target_url)
download_queue = playlist['entries']
@ -188,7 +187,7 @@ for i, target_url in tqdm(enumerate(url_list), total=len(url_list), position=0,
playlist_bar.set_description(playlist['title'])
# Remove already downloaded files from the to-do list.
for p, video in enumerate(playlist):
for p, video in enumerate(download_queue):
if video['id'] in downloaded_videos:
del playlist[p]
playlist_bar.update(len(download_queue))