This commit is contained in:
parent
979582fdc3
commit
739c7dc85d
|
@ -102,6 +102,7 @@ status_bar = tqdm(position=2, bar_format='{desc}', disable=args.daemon)
|
|||
|
||||
def log_bar(msg, level):
|
||||
status_bar.write(f'[{level}] {msg}')
|
||||
if level
|
||||
|
||||
|
||||
def print_without_paths(msg):
|
||||
|
|
|
@ -76,5 +76,10 @@ def download_video(args) -> dict:
|
|||
except Exception as e:
|
||||
output_dict['video_error_logger_msg'].append(f"Error on video {video['id']} '{video['title']}' -> {e}")
|
||||
bar.close()
|
||||
bar_lock.release()
|
||||
try:
|
||||
bar_lock.release()
|
||||
except UnboundLocalError:
|
||||
pass
|
||||
except NameError:
|
||||
pass
|
||||
return output_dict
|
||||
|
|
Reference in New Issue