You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
l1ving_youtube-dl/youtube_dl
Kevin O'Connor ad87121a02
Don't attempt to coerce to JS string to numbers
The current logic in `js_to_json` tries to rewrite octal/hex numbers to
decimal. However, when the logic actually happens the `"` or `'` have
already been trimmed off. This causes what were originally strings, that
happen to look like octal/hex numbers, to get rewritten to decimal and
returned as a number rather than a string.

In practive something like:

```js
{
  "0x40": "foo",
  "040": "bar",
}
```

would get rewritten as:

```json
{
  64: "foo",
  32: "bar
}
```

This is problematic since this isn't valid JSON as you cannot have
non-string keys.
4 years ago
..
downloader [downloader/http] Properly handle missing message in SSLError (closes #26646) 4 years ago
extractor [expressen] Add support for di.se (closes #26670) 4 years ago
postprocessor [postprocessor/embedthumbnail] Fix issues (closes #25717) 4 years ago
YoutubeDL.py [YoutubeDL] Force redirect URL to unicode on python 2 4 years ago
__init__.py Output batch filename when it could not be read (#21915) 5 years ago
__main__.py
aes.py Switch codebase to use compat_b64decode 6 years ago
cache.py
compat.py [compat] Introduce compat_cookiejar_Cookie 4 years ago
jsinterp.py
options.py [options] Clarify doc on --exec command (closes #19087) (#24883) 4 years ago
socks.py
swfinterp.py
update.py [update] Fix updating via symlinks (closes #23991) 4 years ago
utils.py Don't attempt to coerce to JS string to numbers 4 years ago
version.py release 2020.09.20 4 years ago