Browse Source

[youtube] Remove _decrypt_signature_age_gate

rtmp_test
Philipp Hagemeister 11 years ago
parent
commit
13dc64ce74
1 changed files with 0 additions and 9 deletions
  1. +0
    -9
      youtube_dl/extractor/youtube.py

+ 0
- 9
youtube_dl/extractor/youtube.py View File

@ -1109,15 +1109,6 @@ class YoutubeIE(YoutubeBaseInfoExtractor, SubtitlesInfoExtractor):
else:
raise ExtractorError(u'Unable to decrypt signature, key length %d not supported; retrying might work' % (len(s)))
def _decrypt_signature_age_gate(self, s):
# The videos with age protection use another player, so the algorithms
# can be different.
if len(s) == 86:
return s[2:63] + s[82] + s[64:82] + s[63]
else:
# Fallback to the other algortihms
return self._decrypt_signature(s)
def _get_available_subtitles(self, video_id):
try:
sub_list = self._download_webpage(


Loading…
Cancel
Save