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):
if len(self.config['proxy']) > 0:
if isinstance(self.config['proxy'], list):
self._log.debug(
"Removing failing proxy '%s'",
self.selected_proxy
)
self.config['proxy'].pop(self.proxy_index)
if self.proxy_index<len(self.config['proxy'])-1:
self.selected_proxy = self.config['proxy'][self.proxy_index]