don't change proxy if there is no proxy
This commit is contained in:
parent
b0d280678d
commit
c2ea84a620
1 changed files with 5 additions and 3 deletions
|
@ -208,9 +208,11 @@ class GetYoutubeVideos:
|
|||
if 'The uploader has not made this video available in your country' in f"{error}":
|
||||
self.summary['videos_with_error'] += 1
|
||||
self.summary['georestricted_videos'] += 1
|
||||
result = self._change_proxy(video_id)
|
||||
if not result:
|
||||
return None
|
||||
result = None
|
||||
if 'proxy' in self.config:
|
||||
result = self._change_proxy(video_id)
|
||||
if not result:
|
||||
return None
|
||||
return result
|
||||
if 'HTTP Error 403: Forbidden' in f"{error}":
|
||||
result = self._change_proxy(video_id)
|
||||
|
|
Loading…
Reference in a new issue