Sergey M․
8 years ago
No known key found for this signature in database
GPG Key ID: 2C393E0F18A9236D
1 changed files with
3 additions and
3 deletions
-
youtube_dl/utils.py
|
|
@ -165,6 +165,8 @@ DATE_FORMATS_MONTH_FIRST.extend([ |
|
|
|
'%m/%d/%Y %H:%M:%S', |
|
|
|
]) |
|
|
|
|
|
|
|
PACKED_CODES_RE = r"}\('(.+)',(\d+),(\d+),'([^']+)'\.split\('\|'\)" |
|
|
|
|
|
|
|
|
|
|
|
def preferredencoding(): |
|
|
|
"""Get preferred encoding. |
|
|
@ -3017,9 +3019,7 @@ def encode_base_n(num, n, table=None): |
|
|
|
|
|
|
|
|
|
|
|
def decode_packed_codes(code): |
|
|
|
mobj = re.search( |
|
|
|
r"}\('(.+)',(\d+),(\d+),'([^']+)'\.split\('\|'\)", |
|
|
|
code) |
|
|
|
mobj = re.search(PACKED_CODES_RE, code) |
|
|
|
obfucasted_code, base, count, symbols = mobj.groups() |
|
|
|
base = int(base) |
|
|
|
count = int(count) |
|
|
|