new youtube crypto

unlicense
Dominika Liberda 2021-02-26 23:46:27 +01:00 committed by Dominika
parent 79278413a9
commit 39fbd9c21b
1 changed files with 3 additions and 6 deletions

View File

@ -1085,14 +1085,11 @@ class YoutubeIE(YoutubeBaseInfoExtractor):
def _decrypt_signature_protected(self, s):
a = list(s)
a = self.mess(a, 17)
a = self.mess(a, 20)
a = a[2:]
a = self.mess(a, 13)
a.reverse()
a = a[3:]
a = self.mess(a, 12)
a = a[1:]
a.reverse()
a = self.mess(a, 47)
a.reverse()
return "".join(a)
def _get_subtitles(self, video_id, webpage):