Differentiate the unknown event logs

This commit is contained in:
tcely 2025-02-06 22:36:56 -05:00 committed by GitHub
parent 3ec1d2dc29
commit 194e84b074
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -30,7 +30,7 @@ class PPHookStatus:
def yt_dlp_progress_hook(event): def yt_dlp_progress_hook(event):
if event['status'] not in ProgressHookStatus.valid: if event['status'] not in ProgressHookStatus.valid:
log.warn(f'[youtube-dl] unknown event: {str(event)}') log.warn(f'[youtube-dl] unknown progress event: {str(event)}')
return None return None
name = key = 'Unknown' name = key = 'Unknown'
@ -84,7 +84,7 @@ def yt_dlp_progress_hook(event):
def yt_dlp_postprocessor_hook(event): def yt_dlp_postprocessor_hook(event):
if event['status'] not in PPHookStatus.valid: if event['status'] not in PPHookStatus.valid:
log.warn(f'[youtube-dl] unknown event: {str(event)}') log.warn(f'[youtube-dl] unknown postprocessor event: {str(event)}')
return None return None
name = key = 'Unknown' name = key = 'Unknown'