diff options
author | Philipp Hagemeister <phihag@phihag.de> | 2013-09-07 22:28:54 +0200 |
---|---|---|
committer | Philipp Hagemeister <phihag@phihag.de> | 2013-09-07 22:28:54 +0200 |
commit | a27a2470cd79d44562eccbb683c52c561a78d202 (patch) | |
tree | 2bdeb4d99d4dbe4a54c5c8a5c29578f92f289106 /youtube_dl/extractor/generic.py | |
parent | 8851a574a3d9a1716009c772d45d5ad4134f69bf (diff) | |
parent | a7130543fa0368175740f5fa173ef920671db866 (diff) |
Merge branch 'master' of github.com:rg3/youtube-dl
Diffstat (limited to 'youtube_dl/extractor/generic.py')
-rw-r--r-- | youtube_dl/extractor/generic.py | 5 |
1 files changed, 5 insertions, 0 deletions
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: |