* version 2021.06.20

This commit is contained in:
Dominika Liberda 2021-06-20 22:26:02 +02:00
parent 073959a503
commit 1d54631bfb
3 changed files with 6 additions and 8 deletions

View file

@ -1,6 +1,6 @@
#!/bin/bash #!/bin/bash
data="$(curl -s "https://www.youtube.com/s/player/$1/player_ias.vflset/en_GB/base.js")" data="$(curl -s "https://www.youtube.com/s/player/$1/player_ias.vflset/en_GB/base.js")"
func="$(grep -P '[a-z]\=a\.split.*a\.join' <<< "$data")" func="$(grep -P '[a-z]\=a\.split\([\"'"'"']{2}.*a\.join' <<< "$data")"
echo "full extracted function: $func" echo "full extracted function: $func"
obfuscatedName="$(grep -Poh '\(""\);[A-Za-z]+' <<< "$func" | sed -s 's/("");//')" obfuscatedName="$(grep -Poh '\(""\);[A-Za-z]+' <<< "$func" | sed -s 's/("");//')"

View file

@ -1020,14 +1020,12 @@ class YoutubeIE(YoutubeBaseInfoExtractor):
def _decrypt_signature_protected(self, s): def _decrypt_signature_protected(self, s):
a = list(s) a = list(s)
a = a[3:] a = self.mess(a, 49)
a = self.mess(a, 63) a = self.mess(a, 26)
a = self.mess(a, 20)
a = a[1:]
a.reverse() a.reverse()
a = self.mess(a, 44) a = self.mess(a, 62)
a = a[1:]
a.reverse() a.reverse()
a = a[2:]
return "".join(a) return "".join(a)
def _full_signature_handling(self, sig, player_url, video_id): def _full_signature_handling(self, sig, player_url, video_id):

View file

@ -1,6 +1,6 @@
from __future__ import unicode_literals from __future__ import unicode_literals
__version__ = '2021.06.01' __version__ = '2021.06.20'
if __name__ == '__main__': if __name__ == '__main__':
print(__version__) print(__version__)