1
0
Fork 0
mirror of https://github.com/ytdl-org/youtube-dl.git synced 2024-11-25 19:52:11 +00:00
youtube-dl/youtube_dl
Lucas Moura 7c05097633
[jsinterp] Avoid double key lookup for setting new key
In order to add a new key to both __objects and __functions dicts on jsinterp.py, it is
necessary to first verify if a key was present and if not, create the key and
assign it to a value.

However, this can be done with a single step using dict setdefault method.
2016-06-19 03:29:45 +07:00
..
downloader [downloader/external] Decode error string before writing to stderr 2016-06-12 16:45:07 +07:00
extractor [r7] Fix extraction and add support for articles (Closes #9826) 2016-06-19 02:25:34 +07:00
postprocessor
__init__.py [__init__] Use write_string instead of compat_string (Closes #9689) 2016-06-05 21:01:20 +07:00
__main__.py [refactor] Single quotes consistency 2016-02-14 15:37:17 +06:00
aes.py
cache.py
compat.py [compat] Import html5 entities correctly 2016-06-10 18:12:57 +08:00
jsinterp.py [jsinterp] Avoid double key lookup for setting new key 2016-06-19 03:29:45 +07:00
options.py [options] Add --load-info-json alias for symmetry with --write-info-json 2016-06-06 02:52:58 +07:00
socks.py
swfinterp.py
update.py
utils.py [utils] Don't transform numbers not starting with a zero 2016-06-16 11:00:54 +08:00
version.py release 2016.06.19 2016-06-19 02:30:29 +07:00
YoutubeDL.py [YoutubeDL] Force string conversion on non string video ids 2016-06-09 05:34:19 +07:00