[utils] Relaxing regex in decode_packed_codes for vidzi
authorYen Chi Hsuan <yan12125@gmail.com>
Fri, 26 Feb 2016 07:13:03 +0000 (15:13 +0800)
committerYen Chi Hsuan <yan12125@gmail.com>
Fri, 26 Feb 2016 07:13:03 +0000 (15:13 +0800)
youtube_dl/utils.py

index fc7e2fb7f11620bd07c5ba90427170ceedd1a3a3..756ad4fd10e28e69be4a6e6ea0eb5c67ffa44970 100644 (file)
@@ -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)