0
0
Fork 0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2024-11-25 02:45:12 +00:00

[youtube] Remove _decrypt_signature_age_gate

This commit is contained in:
Philipp Hagemeister 2013-09-22 11:17:21 +02:00
parent c35f9e72ce
commit 13dc64ce74

View file

@ -1109,15 +1109,6 @@ def _static_decrypt_signature(self, s, video_id, player_url, age_gate):
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(