change text to find

This commit is contained in:
Antonio J. Delgado 2024-12-29 18:22:37 +02:00
parent 274ca479c6
commit 13ed6f8792

View file

@ -123,9 +123,9 @@ class GetYoutubeVideos:
if not result:
return None
return result
if 'Unable to connect to proxy' in f"{error}":
if 'Failed to extract any player response' in f"{error}":
self._log.error(
"Error connecting to proxy '%s'",
"Possible error connecting to proxy '%s'",
self.selected_proxy
)
self.summary['videos_with_error'] += 1
@ -138,8 +138,7 @@ class GetYoutubeVideos:
# self.summary['skipped_videos'] += 1
self.summary['skipped_videos'] += 1
self._log.debug(
"Skipping video. YDL: %s. Error: %s",
ydl.params,
"Skipping video. Error: %s",
error
)
return None