add initial proxy
This commit is contained in:
parent
83a9ea2dd2
commit
b47a33636a
1 changed files with 4 additions and 1 deletions
|
@ -60,6 +60,9 @@ class GetYoutubeVideos:
|
||||||
'georestricted_videos': 0,
|
'georestricted_videos': 0,
|
||||||
'downloaded_videos_titles': [],
|
'downloaded_videos_titles': [],
|
||||||
}
|
}
|
||||||
|
if len(self.config['proxy']) > 0:
|
||||||
|
self.selected_proxy = self.config['proxy'][0]
|
||||||
|
else:
|
||||||
self.selected_proxy = ''
|
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']):
|
||||||
|
|
Loading…
Reference in a new issue