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.
youtube-dl/youtube_dl
Kevin O'Connor 4eda10499e
[utils] Don't attempt to coerce JS strings to numbers in js_to_json (#26851)
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
extractor [ustream] Add support for video.ibm.com (#26894) 4 years ago
postprocessor
YoutubeDL.py
__init__.py
__main__.py
aes.py
cache.py
compat.py
jsinterp.py
options.py
socks.py [socks] Report errors elegantly when credentails are required but missing 8 years ago
swfinterp.py
update.py
utils.py
version.py