1
0
mirror of https://github.com/l1ving/youtube-dl synced 2024-11-24 08:02:50 +08:00

[youtube] Fix protocol-independent URLs (Fixes #1768)

This commit is contained in:
Philipp Hagemeister 2013-11-15 01:45:34 +01:00
parent 80b9bbce86
commit 9f9be844fc

View File

@ -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: