From: Yen Chi Hsuan Date: Fri, 26 Feb 2016 07:13:03 +0000 (+0800) Subject: [utils] Relaxing regex in decode_packed_codes for vidzi X-Git-Url: http://git.oshgnacknak.de/?a=commitdiff_plain;h=680079be39563a2ff810602413db5245d6cbf148;p=youtube-dl [utils] Relaxing regex in decode_packed_codes for vidzi --- diff --git a/youtube_dl/utils.py b/youtube_dl/utils.py index fc7e2fb7f..756ad4fd1 100644 --- a/youtube_dl/utils.py +++ b/youtube_dl/utils.py @@ -2639,7 +2639,7 @@ def base_n(num, n, table=None): def decode_packed_codes(code): mobj = re.search( - r"'([^']+)',(\d+),(\d+),'([^']+)'\.split\('\|'\),[^,]+,{}", + r"}\('(.+)',(\d+),(\d+),'([^']+)'\.split\('\|'\)", code) obfucasted_code, base, count, symbols = mobj.groups() base = int(base)