add output when poping proxy

This commit is contained in:
Antonio J. Delgado 2025-01-06 11:54:35 +02:00
parent 49347f0230
commit 0c2f1d0e2e

View file

@ -79,6 +79,10 @@ class GetYoutubeVideos:
def _change_proxy(self, video_id): def _change_proxy(self, video_id):
if len(self.config['proxy']) > 0: if len(self.config['proxy']) > 0:
if isinstance(self.config['proxy'], list): if isinstance(self.config['proxy'], list):
self._log.debug(
"Removing failing proxy '%s'",
self.selected_proxy
)
self.config['proxy'].pop(self.proxy_index) self.config['proxy'].pop(self.proxy_index)
if self.proxy_index<len(self.config['proxy'])-1: if self.proxy_index<len(self.config['proxy'])-1:
self.selected_proxy = self.config['proxy'][self.proxy_index] self.selected_proxy = self.config['proxy'][self.proxy_index]