Commit 1d54631b authored by Dominika Liberda's avatar Dominika Liberda 💽
Browse files

* version 2021.06.20

parent 073959a5
Pipeline #415 passed with stage
in 25 minutes and 51 seconds
#!/bin/bash
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"
obfuscatedName="$(grep -Poh '\(""\);[A-Za-z]+' <<< "$func" | sed -s 's/("");//')"
......
......@@ -1020,14 +1020,12 @@ class YoutubeIE(YoutubeBaseInfoExtractor):
def _decrypt_signature_protected(self, s):
a = list(s)
a = a[3:]
a = self.mess(a, 63)
a = self.mess(a, 20)
a = a[1:]
a = self.mess(a, 49)
a = self.mess(a, 26)
a.reverse()
a = self.mess(a, 44)
a = a[1:]
a = self.mess(a, 62)
a.reverse()
a = a[2:]
return "".join(a)
def _full_signature_handling(self, sig, player_url, video_id):
......
from __future__ import unicode_literals
__version__ = '2021.06.01'
__version__ = '2021.06.20'
if __name__ == '__main__':
print(__version__)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment