add initial proxy

This commit is contained in:
Antonio J. Delgado 2025-03-31 16:19:24 +03:00
parent 83a9ea2dd2
commit b47a33636a

View file

@ -60,7 +60,10 @@ class GetYoutubeVideos:
'georestricted_videos': 0, 'georestricted_videos': 0,
'downloaded_videos_titles': [], 'downloaded_videos_titles': [],
} }
self.selected_proxy = '' if len(self.config['proxy']) > 0:
self.selected_proxy = self.config['proxy'][0]
else:
self.selected_proxy = ''
self.proxy_index = 0 self.proxy_index = 0
if os.path.exists(self.config['downloaded_database']): if os.path.exists(self.config['downloaded_database']):
with open(self.config['downloaded_database'], 'r', encoding='utf-8') as db_file: with open(self.config['downloaded_database'], 'r', encoding='utf-8') as db_file: