From a2308ad2a1b918e690573586746ecfbaeb2158ca Mon Sep 17 00:00:00 2001 From: Zhang Ning Date: Sun, 6 Sep 2015 18:20:03 +0800 Subject: [PATCH] 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 --- src/you_get/extractor.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/you_get/extractor.py b/src/you_get/extractor.py index 23bb2ac3..9bc950fc 100644 --- a/src/you_get/extractor.py +++ b/src/you_get/extractor.py @@ -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']: