fix coutners
This commit is contained in:
parent
13ed6f8792
commit
0dd5206241
1 changed files with 6 additions and 6 deletions
|
@ -109,18 +109,18 @@ class GetYoutubeVideos:
|
|||
return None
|
||||
return result
|
||||
if 'HTTP Error 403: Forbidden' in f"{error}":
|
||||
self.summary['videos_with_error'] += 1
|
||||
self.summary['possible_proxy_errors'] += 1
|
||||
result = self._change_proxy(video_id)
|
||||
if not result:
|
||||
self.summary['videos_with_error'] += 1
|
||||
self.summary['possible_proxy_errors'] += 1
|
||||
return None
|
||||
return result
|
||||
if 'not a bot' in f"{error}":
|
||||
self.summary['videos_with_error'] += 1
|
||||
self.summary['possible_ban_errors'] += 1
|
||||
# elif age_limit_errors?
|
||||
result = self._change_proxy(video_id)
|
||||
if not result:
|
||||
self.summary['videos_with_error'] += 1
|
||||
self.summary['possible_ban_errors'] += 1
|
||||
return None
|
||||
return result
|
||||
if 'Failed to extract any player response' in f"{error}":
|
||||
|
@ -128,10 +128,10 @@ class GetYoutubeVideos:
|
|||
"Possible error connecting to proxy '%s'",
|
||||
self.selected_proxy
|
||||
)
|
||||
self.summary['videos_with_error'] += 1
|
||||
self.summary['possible_proxy_errors'] += 1
|
||||
result = self._change_proxy(video_id)
|
||||
if not result:
|
||||
self.summary['videos_with_error'] += 1
|
||||
self.summary['possible_proxy_errors'] += 1
|
||||
return None
|
||||
return result
|
||||
# if 'This live event will begin in a few moments' in f"{error}":
|
||||
|
|
Loading…
Reference in a new issue