diff --git a/get_youtube_videos/get_youtube_videos.py b/get_youtube_videos/get_youtube_videos.py index 3b74f44..c7d198f 100644 --- a/get_youtube_videos/get_youtube_videos.py +++ b/get_youtube_videos/get_youtube_videos.py @@ -78,6 +78,8 @@ class GetYoutubeVideos: def _change_proxy(self, video_id): if len(self.config['proxy']) > 0: + if isinstance(self.config['proxy'], list): + self.config['proxy'].pop(self.proxy_index) if self.proxy_index