This commit is contained in:
parent
08f911e20f
commit
0ac436663f
|
@ -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'])
|
||||
|
|
|
@ -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()
|
||||
|
||||
|
|
Reference in New Issue