From 49347f023014d0f3925274917d5d634c1e63e581 Mon Sep 17 00:00:00 2001 From: "Antonio J. Delgado" Date: Mon, 6 Jan 2025 11:48:17 +0200 Subject: [PATCH] pop if list --- get_youtube_videos/get_youtube_videos.py | 2 ++ 1 file changed, 2 insertions(+) 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