pop if list
This commit is contained in:
parent
eaabdc662e
commit
49347f0230
1 changed files with 2 additions and 0 deletions
|
@ -78,6 +78,8 @@ 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):
|
||||||
|
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]
|
||||||
self.proxy_index += 1
|
self.proxy_index += 1
|
||||||
|
|
Loading…
Reference in a new issue