From: Jaime Marquínez Ferrándiz Date: Fri, 6 Sep 2013 16:39:35 +0000 (+0200) Subject: [generic] If the url doesn't specify the protocol, then try to extract prepending... X-Git-Url: http://git.oshgnacknak.de/?a=commitdiff_plain;h=a7130543fa0368175740f5fa173ef920671db866;p=youtube-dl [generic] If the url doesn't specify the protocol, then try to extract prepending '' --- diff --git a/youtube_dl/extractor/generic.py b/youtube_dl/extractor/generic.py index de7379a92..f92e61fea 100644 --- a/youtube_dl/extractor/generic.py +++ b/youtube_dl/extractor/generic.py @@ -109,6 +109,11 @@ class GenericIE(InfoExtractor): return new_url def _real_extract(self, url): + parsed_url = compat_urlparse.urlparse(url) + if not parsed_url.scheme: + self._downloader.report_warning('The url doesn\'t specify the protocol, trying with http') + return self.url_result('http://' + url) + try: new_url = self._test_redirect(url) if new_url: