diff options
author | Philipp Hagemeister <phihag@phihag.de> | 2013-11-15 01:45:34 +0100 |
---|---|---|
committer | Philipp Hagemeister <phihag@phihag.de> | 2013-11-15 01:45:39 +0100 |
commit | 9f9be844fcc5155ab3e832c8428c8f016bea819b (patch) | |
tree | 5f83bb255ec863fdeb79954e2cbb0a99ded04af8 | |
parent | 80b9bbce8687f800b79edb36edf8c193dcf26a78 (diff) |
[youtube] Fix protocol-independent URLs (Fixes #1768)
-rw-r--r-- | youtube_dl/extractor/youtube.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/youtube_dl/extractor/youtube.py b/youtube_dl/extractor/youtube.py index c992cba97..ed82e4fc0 100644 --- a/youtube_dl/extractor/youtube.py +++ b/youtube_dl/extractor/youtube.py @@ -1019,6 +1019,8 @@ class YoutubeIE(YoutubeBaseInfoExtractor, SubtitlesInfoExtractor): """Turn the encrypted s field into a working signature""" if player_url is not None: + if player_url.startswith(u'//'): + player_url = u'https:' + player_url try: player_id = (player_url, len(s)) if player_id not in self._player_cache: |