aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/compat.py
AgeCommit message (Collapse)Author
2023-08-01[utils] Revise `isinstance()` tests (especially for str/unicode/bytes) to ↵dirkf
complete Linter fix
2023-07-29[utils] Rework decoding of `Content-Encoding`sdirkf
* support nested encodings * support optional `br` encoding, if brotli package is installed * support optional 'compress' encoding, if ncompress package is installed * response `Content-Encoding` has only unprocessed encodings, or removed * response `Content-Length` is decoded length (usable for filesize metadata) * use zlib for both deflate and gzip decompression * some elements taken from yt-dlp: thx especially coletdjnz
2023-07-25[build] Fix various Jython CI and test issuesdirkf
2023-07-18[compat] Fix old Pythons broken loading of valueless cookie attributesdirkf
Cookie string parsing in Py 2.6.9, probably earlier, requires `=`. Also 3.2, though the CPython code appears to be OK: 3.1 was also wrong.
2023-07-18[compat] Add Request and HTTPClient compat for redirectdirkf
* support `method` parameter of `Request.__init__` (Py 2 and old Py 3) * support `getcode` method of compat_http_client.HTTPResponse (Py 2)
2023-07-05[Misc] Fixes for 2.6 compatibilitydirkf
2023-07-05[workflows/ci.yml] Restore test support for Py 3.2dirkf
2023-04-05[compat] Add and use `compat_open()` like Py3 `open()`dirkf
* resolves FIXME: ytdl-org/youtube-dl/commit/dfe5fa4
2023-02-13[compat] Systematise compat_ namingdirkf
[skip ci]
2022-11-01[compat] Unify unicode/str compat and move updirkf
2022-10-31[compat] Add compat_casefold and compat_re_Match, for traverse_obj() portdirkf
2022-08-26[compat] Replace deficient ChainMap class in Py3.3 and earlierdirkf
* fix version check
2022-08-26[compat] Replace deficient ChainMap class in Py3.3 and earlierdirkf
2022-08-19[jsinterp] Clean up and pull yt-dlp styledirkf
* add compat_re_Pattern * improve compat_collections_chain_map * use class JS_Undefined * remove unused code
2022-08-14[jsinterp] Overhaul JSInterp to handle new YT players 4c3f79c5, 324f67b9 ↵dirkf
(#31170) * back-port from yt-dlp 8f53dc44a0cc1c2d98c35740b9293462c080f5d0, thanks pukkandan * also support void, improve <</>> precedence, improve expressions in comma-list * add more tests
2022-06-10[utils, etc] Kill child processes when yt-dl is killedpukkandan
* derived from PR #26592, closes #26592 Authored by: Unrud
2022-01-30Back-port JS interpreter upgrade from yt-dlp PR #1437df
2022-01-30Add compat_map/filter and use the formerdf
2021-04-06[compat] Use more conventional name for compat SimpleCookieSergey M․
2021-04-06[compat] flake8Sergey M․
2021-04-05[compat] add compat_SimpleCookie to __all__ arrayRemita Amine
2021-04-04[compat] add compat_SimpleCookieRemita Amine
2020-11-21Fix typos (#27084)Josh Soref
* spelling: authorization Signed-off-by: Josh Soref <jsoref@users.noreply.github.com> * spelling: brightcove Signed-off-by: Josh Soref <jsoref@users.noreply.github.com> * spelling: creation Signed-off-by: Josh Soref <jsoref@users.noreply.github.com> * spelling: exceeded Signed-off-by: Josh Soref <jsoref@users.noreply.github.com> * spelling: exception Signed-off-by: Josh Soref <jsoref@users.noreply.github.com> * spelling: extension Signed-off-by: Josh Soref <jsoref@users.noreply.github.com> * spelling: extracting Signed-off-by: Josh Soref <jsoref@users.noreply.github.com> * spelling: extraction Signed-off-by: Josh Soref <jsoref@users.noreply.github.com> * spelling: frontline Signed-off-by: Josh Soref <jsoref@users.noreply.github.com> * spelling: improve Signed-off-by: Josh Soref <jsoref@users.noreply.github.com> * spelling: length Signed-off-by: Josh Soref <jsoref@users.noreply.github.com> * spelling: listsubtitles Signed-off-by: Josh Soref <jsoref@users.noreply.github.com> * spelling: multimedia Signed-off-by: Josh Soref <jsoref@users.noreply.github.com> * spelling: obfuscated Signed-off-by: Josh Soref <jsoref@users.noreply.github.com> * spelling: partitioning Signed-off-by: Josh Soref <jsoref@users.noreply.github.com> * spelling: playlist Signed-off-by: Josh Soref <jsoref@users.noreply.github.com> * spelling: playlists Signed-off-by: Josh Soref <jsoref@users.noreply.github.com> * spelling: restriction Signed-off-by: Josh Soref <jsoref@users.noreply.github.com> * spelling: services Signed-off-by: Josh Soref <jsoref@users.noreply.github.com> * spelling: split Signed-off-by: Josh Soref <jsoref@users.noreply.github.com> * spelling: srmediathek Signed-off-by: Josh Soref <jsoref@users.noreply.github.com> * spelling: support Signed-off-by: Josh Soref <jsoref@users.noreply.github.com> * spelling: thumbnail Signed-off-by: Josh Soref <jsoref@users.noreply.github.com> * spelling: verification Signed-off-by: Josh Soref <jsoref@users.noreply.github.com> * spelling: whitespaces Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>
2020-05-05[compat] Introduce compat_cookiejar_CookieSergey M․
2020-02-08[update] Fix updating via symlinks (closes #23991)Sergey M․
2020-02-08[compat] Introduce compat_realpath (refs #23991)Sergey M․
2019-05-11Fix W504 and disable W503 (closes #20863)Sergey M․
2019-03-11Start moving to ytdl-orgSergey M․
2019-03-06[compat] Introduce compat_etree_ElementSergey M․
2018-06-18[compat] Introduce compat_integer_typesSergey M․
2018-02-02[compat] Mute some F821 under python 3Sergey M․
2018-01-28Add support for IronPythonSergey M․
2018-01-23[compat] Add compat_b64decodeSergey M․
2018-01-01[utils] Fix youtube-dl under PyPy3 on WindowsPhilipp Hagemeister
2017-09-23[mixcloud] Fix extraction (closes #14088)Tatsuyuki Ishi
2017-06-17[compat] Fix compat_shlex_quote on Windows (closes #5889, closes #10254)Sergey M․
2017-06-12[compat] Add compat_HTMLParseError to __all__Sergey M․
2017-06-12[compat] Introduce compat_HTMLParseErrorSergey M․
2017-04-12improve coding styleRemita Amine
2017-02-25[compat] Use try except for compat_numeric_typesSergey M․
2017-02-23[compat] Add compat_numeric_typesSergey M․
2017-02-01[compat] add compat_etree_register_namespace to __all__ listRemita Amine
2017-01-29[compat] add compat_etree_register_namespaceRemita Amine
2017-01-06Fix "invalid escape sequences" error on Python 3.6Yen Chi Hsuan
2016-11-17Update coding style after pycodestyle 2.1.0Yen Chi Hsuan
In pycodestyle 2.1.0, E305 was introduced, which requires two blank lines after top level declarations, too. See https://github.com/PyCQA/pycodestyle/issues/400 See also #10689; thanks @stepshal for first mentioning this issue and initial patches
2016-07-07[compat] Fix test_cmdline_umlauts on Python 2.6Yen Chi Hsuan
The original statement raises uncaught UnicodeWarning on Python 2.6
2016-07-07[compat] Fix compat_shlex_split for non-ASCII inputYen Chi Hsuan
Closes #9871
2016-06-10[compat] Import html5 entities correctlyYen Chi Hsuan
2016-06-10[compat] Add compat_html_entities_html5Yen Chi Hsuan
Used in tset_Vporn_1. Also Related to #9270
2016-06-05[compat] Add 'compat_input' to __all__Jaime Marquínez Ferrándiz