fix proxy rotation

This commit is contained in:
Antonio J. Delgado 2024-12-29 20:01:06 +02:00
parent 0dd5206241
commit cc357c0a42

View file

@ -78,7 +78,7 @@ 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 self.proxy_index<len(self.config['proxy']): 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
self._log.warning( self._log.warning(