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

View File

@ -208,6 +208,8 @@ for i, target_url in tqdm(enumerate(url_list), total=len(url_list), position=0,
'download_archive': downloaded_videos,
'ydl_opts': thread_opts,
}) for video in download_queue)):
print(result)
# Save the video ID to the file
if result['downloaded_video_id']:
download_archive_logger.info(result['downloaded_video_id'])

View File

@ -58,7 +58,7 @@ def download_video(args) -> dict:
break
desc_with = int(np.round(os.get_terminal_size()[0] * (1 / 4)))
bar = tqdm(total=100, position=(offset if len(bars) else None), desc=video['title'].ljust(desc_with)[:desc_with], bar_format='{l_bar}{bar}| {n_fmt}/{total_fmt} [{elapsed}<{remaining}{postfix}]', leave=False, disable=not len(bars))
bar = tqdm(total=100, position=(offset if locked else None), desc=video['title'].ljust(desc_with)[:desc_with], bar_format='{l_bar}{bar}| {n_fmt}/{total_fmt} [{elapsed}<{remaining}{postfix}]', leave=False, disable=not len(bars))
output_dict = {'downloaded_video_id': None, 'blacklist_video_id': None, 'video_error_logger_msg': [], 'status_msg': [], 'logger_msg': []} # empty object
start_time = time.time()