projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e4fc8d2
)
[utils] Relaxing regex in decode_packed_codes for vidzi
author
Yen Chi Hsuan
<yan12125@gmail.com>
Fri, 26 Feb 2016 07:13:03 +0000
(15:13 +0800)
committer
Yen Chi Hsuan
<yan12125@gmail.com>
Fri, 26 Feb 2016 07:13:03 +0000
(15:13 +0800)
youtube_dl/utils.py
patch
|
blob
|
history
diff --git
a/youtube_dl/utils.py
b/youtube_dl/utils.py
index fc7e2fb7f11620bd07c5ba90427170ceedd1a3a3..756ad4fd10e28e69be4a6e6ea0eb5c67ffa44970 100644
(file)
--- 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)