check for empty list

This commit is contained in:
Antonio J. Delgado 2025-09-15 09:16:21 +03:00
parent c2ea84a620
commit 6f1dced8e2

View file

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