mirror of
https://github.com/soimort/you-get.git
synced 2025-02-03 00:33:58 +03:00
reset url and vid when download in serial
when use xxx_download_by_url(url1/url2) vid will not reset, only first url will download Signed-off-by: Zhang Ning <zhangn1985@gmail.com>
This commit is contained in:
parent
bf495b1bed
commit
a2308ad2a1
@ -33,6 +33,7 @@ class VideoExtractor():
|
||||
|
||||
def download_by_url(self, url, **kwargs):
|
||||
self.url = url
|
||||
self.vid= None
|
||||
|
||||
if 'extractor_proxy' in kwargs and kwargs['extractor_proxy']:
|
||||
set_proxy(parse_host(kwargs['extractor_proxy']))
|
||||
@ -50,6 +51,7 @@ class VideoExtractor():
|
||||
self.download(**kwargs)
|
||||
|
||||
def download_by_vid(self, vid, **kwargs):
|
||||
self.url = None
|
||||
self.vid = vid
|
||||
|
||||
if 'extractor_proxy' in kwargs and kwargs['extractor_proxy']:
|
||||
|
Loading…
Reference in New Issue
Block a user