This commit is contained in:
parent
44122a8ef4
commit
3a40ce5b50
|
@ -243,7 +243,6 @@ while True:
|
|||
# Print stuff
|
||||
for line in result['video_error_logger_msg']:
|
||||
video_error_logger.info(line)
|
||||
logger.error(line)
|
||||
file_logger.error(line)
|
||||
encountered_errors += 1
|
||||
if not args.silence_errors:
|
||||
|
@ -259,11 +258,13 @@ while True:
|
|||
playlist_bar.update()
|
||||
else:
|
||||
playlist_bar.write(f"All videos already downloaded for '{playlist['title']}'.")
|
||||
|
||||
error_msg = f'Encountered {encountered_errors} errors.'
|
||||
if args.daemon:
|
||||
logger.info(error_msg)
|
||||
else:
|
||||
playlist_bar.write(error_msg)
|
||||
|
||||
log_info_twice(f"Finished item: '{playlist['title']}' {target_url}")
|
||||
log_info_twice(f"Finished process in {round(math.ceil(time.time() - start_time) / 60, 2)} min.")
|
||||
if not args.daemon:
|
||||
|
|
Reference in New Issue