diff --git a/get_youtube_videos/get_youtube_videos.py b/get_youtube_videos/get_youtube_videos.py index 180d643..a69b037 100644 --- a/get_youtube_videos/get_youtube_videos.py +++ b/get_youtube_videos/get_youtube_videos.py @@ -209,7 +209,7 @@ class GetYoutubeVideos: self.summary['videos_with_error'] += 1 self.summary['georestricted_videos'] += 1 result = None - if 'proxy' in self.config: + if 'proxy' in self.config and len(self.config['proxy']) > 0: result = self._change_proxy(video_id) if not result: return None