1
0
Fork 0
mirror of https://github.com/ytdl-org/youtube-dl.git synced 2024-12-22 16:57:40 +00:00

[utils] Relaxing regex in decode_packed_codes for vidzi

This commit is contained in:
Yen Chi Hsuan 2016-02-26 15:13:03 +08:00
parent e4fc8d2ebe
commit 680079be39

View file

@ -2639,7 +2639,7 @@ def base_n(num, n, table=None):
def decode_packed_codes(code): def decode_packed_codes(code):
mobj = re.search( mobj = re.search(
r"'([^']+)',(\d+),(\d+),'([^']+)'\.split\('\|'\),[^,]+,{}", r"}\('(.+)',(\d+),(\d+),'([^']+)'\.split\('\|'\)",
code) code)
obfucasted_code, base, count, symbols = mobj.groups() obfucasted_code, base, count, symbols = mobj.groups()
base = int(base) base = int(base)