mirror of
https://github.com/soimort/you-get.git
synced 2025-03-13 03:17:44 +03:00
Merge branch 'zhangn1985-for-up' into develop (fix #906)
This commit is contained in:
commit
2a80fb5d5b
@ -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…
x
Reference in New Issue
Block a user