handle error of proxy
This commit is contained in:
parent
d397d8bbea
commit
77f9c431f3
1 changed files with 7 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue