don't change proxy if there is no proxy

This commit is contained in:
Antonio J. Delgado 2025-09-15 09:14:23 +03:00
parent b0d280678d
commit c2ea84a620

View file

@ -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)