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