diff options
author | Philipp Hagemeister <phihag@phihag.de> | 2013-11-18 13:18:17 +0100 |
---|---|---|
committer | Philipp Hagemeister <phihag@phihag.de> | 2013-11-18 13:18:17 +0100 |
commit | 83aa529330245b9221ae99e6769a40531f4ba216 (patch) | |
tree | 47d45a7d2f5d7d92d28469ac0933dbf19c29af00 /youtube_dl | |
parent | 96b31b65331710ad6d3582abc7ecbaee0efa605a (diff) |
Support protocol-independent URLs (#1787)
Diffstat (limited to 'youtube_dl')
-rw-r--r-- | youtube_dl/extractor/youtube.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/youtube_dl/extractor/youtube.py b/youtube_dl/extractor/youtube.py index 514a11f7f..9aa4c6fab 100644 --- a/youtube_dl/extractor/youtube.py +++ b/youtube_dl/extractor/youtube.py @@ -141,7 +141,7 @@ class YoutubeIE(YoutubeBaseInfoExtractor, SubtitlesInfoExtractor): IE_DESC = u'YouTube.com' _VALID_URL = r"""(?xi)^ ( - (?:https?://)? # http(s):// (optional) + (?:https?://|//)? # http(s):// or protocol-independent URL (optional) (?:(?:(?:(?:\w+\.)?youtube(?:-nocookie)?\.com/| tube\.majestyc\.net/| youtube\.googleapis\.com/) # the various hostnames, with wildcard subdomains @@ -364,7 +364,7 @@ class YoutubeIE(YoutubeBaseInfoExtractor, SubtitlesInfoExtractor): } }, { - u"url": u"https://www.YouTube.com/watch?v=yZIXLfi8CZQ", + u"url": u"//www.YouTube.com/watch?v=yZIXLfi8CZQ", u"file": u"yZIXLfi8CZQ.mp4", u"note": u"Embed-only video (#1746)", u"info_dict": { |