From 680079be39563a2ff810602413db5245d6cbf148 Mon Sep 17 00:00:00 2001 From: Yen Chi Hsuan Date: Fri, 26 Feb 2016 15:13:03 +0800 Subject: [PATCH] [utils] Relaxing regex in decode_packed_codes for vidzi --- youtube_dl/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)