Commit 98e6a95b authored by Dominika Liberda's avatar Dominika Liberda 💽
Browse files

version 2020.11.16

parent 6f876fba
Pipeline #111 passed with stage
in 22 minutes and 25 seconds
version 2020.11.16
Extractor
* [youtube] fixed channel, playlist, search
version 2020.11.14
Extractor
* [youtube] fixed static crypto
* [youtube] new *tiny* crypto extracting system rewritten from bash by @selfisekai
version 2020.11.12
Extractor
* [tiktok] fixed extractor
......
#!/bin/bash
func="$(cat $1 | grep -P '[a-z]\=a\.split.*a\.join')"
data="$(curl -s "https://www.youtube.com/s/player/$1/player_ias.vflset/en_GB/base.js")"
func="$(echo "$data" | grep -P '[a-z]\=a\.split.*a\.join')"
echo $func
obfuscatedName="$(echo $func | grep -Poh '\(""\);[A-Za-z]+' | sed -s 's/("");//')"
obfuscatedFunc=$(cat "$1" | tr -d '\n' | grep -Poh "$obfuscatedName\=.*?}}")
obfuscatedFunc=$(echo "$data" | tr -d '\n' | grep -Poh "$obfuscatedName\=.*?}}")
mess="$(echo "$obfuscatedFunc" | grep -Poh "..:function\([a-z]+,[a-z]+\){var" | grep -Poh "^..")"
rev="$(echo "$obfuscatedFunc" | grep -Poh "..:function\([a-z]+\){[a-z]+.rev" | grep -Poh "^..")"
splice="$(echo "$obfuscatedFunc" | grep -Poh "..:function\([a-z]+\,[a-z]+\){[a-z]+\." | grep -Poh "^..")"
......
......@@ -1104,14 +1104,14 @@ class YoutubeIE(YoutubeBaseInfoExtractor):
def _decrypt_signature_protected(self, s):
a = list(s)
a = self.mess(a, 69)
a.reverse()
a = a[2:]
a = self.mess(a, 56)
a = a[1:]
a = self.mess(a, 65)
a = a[2:]
a.reverse()
a = a[3:]
a.reverse()
a = self.mess(a, 2)
return "".join(a)
def _get_subtitles(self, video_id, webpage):
......
from __future__ import unicode_literals
__version__ = '2020.11.12'
__version__ = '2020.11.16'
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