This commit is contained in:
Cyberes 2023-01-21 17:54:24 -07:00
parent ade20f40f4
commit c3699d7641
No known key found for this signature in database
GPG Key ID: 194A1C358AACFC39
1 changed files with 1 additions and 1 deletions

View File

@ -75,7 +75,7 @@ def download_video(args) -> dict:
break
kwargs['ydl_opts']['progress_hooks'] = [progress_hook]
desc_with = int(np.round(os.get_terminal_size()[0] * (1 / 4)))
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)
bar = tqdm(total=100, position=(offset if locked else None), desc=f"{video['id'] - video['title']}".ljust(desc_with)[:desc_with], bar_format='{l_bar}{bar}| {n_fmt}/{total_fmt} [{elapsed}<{remaining}{postfix}]', leave=False)
ylogger = ytdl_logger(setup_file_logger(video['id'], kwargs['output_dir'] / f"[{video['id']}].log"))
kwargs['ydl_opts']['logger'] = ylogger