add output when poping proxy
This commit is contained in:
parent
49347f0230
commit
0c2f1d0e2e
1 changed files with 4 additions and 0 deletions
|
@ -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]
|
||||
|
|
Loading…
Reference in a new issue