update order
This commit is contained in:
parent
01b7a48bc7
commit
d397d8bbea
1 changed files with 2 additions and 2 deletions
|
@ -79,12 +79,12 @@ class GetYoutubeVideos:
|
|||
def _change_proxy(self, video_id):
|
||||
if len(self.config['proxy']) > 0:
|
||||
if self.proxy_index<len(self.config['proxy']):
|
||||
self.selected_proxy = self.config['proxy'][self.proxy_index]
|
||||
self.proxy_index += 1
|
||||
self._log.warning(
|
||||
"Got an error fetching video information. Setting proxy to '%s'...",
|
||||
self.selected_proxy
|
||||
)
|
||||
self.selected_proxy = self.config['proxy'][self.proxy_index]
|
||||
self.proxy_index += 1
|
||||
return self._get_video_info(video_id)
|
||||
self.proxy_index = 0
|
||||
self.selected_proxy = ''
|
||||
|
|
Loading…
Reference in a new issue