handle error of proxy

This commit is contained in:
Antonio J. Delgado 2024-12-29 17:51:15 +02:00
parent d397d8bbea
commit 77f9c431f3

View file

@ -123,6 +123,13 @@ class GetYoutubeVideos:
if not result:
return None
return result
if 'Unable to connect to proxy' in f"{error}":
self.summary['videos_with_error'] += 1
self.summary['possible_proxy_errors'] += 1
result = self._change_proxy(video_id)
if not result:
return None
return result
# if 'This live event will begin in a few moments' in f"{error}":
# self.summary['skipped_videos'] += 1
self.summary['skipped_videos'] += 1