aboutsummaryrefslogtreecommitdiff
path: root/yt_dlp/utils
AgeCommit message (Collapse)Author
2025-04-06[utils] `url_or_none`: Support WebSocket URLs (#12848)doe1080
Authored by: doe1080
2025-03-24[utils] `js_to_json`: Make function less fatal (#12715)sepro
Authored by: seproDev
2025-03-21[cleanup] Misc (#12526)Simon Sawicki
Authored by: Grub4K, seproDev, gamer191, dirkf Co-authored-by: sepro <sepro@sepr0.com>
2025-03-03[networking] Add `keep_header_casing` extension (#11652)Simon Sawicki
Authored by: coletdjnz, Grub4K Co-authored-by: coletdjnz <coletdjnz@protonmail.com>
2025-02-23[core] Load plugins on demand (#11305)coletdjnz
- Adds `--no-plugin-dirs` to disable plugin loading - `--plugin-dirs` now supports post-processors Authored by: coletdjnz, Grub4K, pukkandan
2025-02-20[core] Support emitting ConEmu progress codes (#10649)Simon Sawicki
Authored by: Grub4K
2025-02-19[fd/hls] Support `--write-pages` for m3u8 media playlists (#12333)bashonly
Authored by: bashonly
2025-01-26[cleanup] Misc (#12194)sepro
Closes #12098, Closes #12133 Authored by: seproDev, bashonly, lonble, pjrobertson Co-authored-by: bashonly <88596187+bashonly@users.noreply.github.com> Co-authored-by: Lonble <74650029+lonble@users.noreply.github.com> Co-authored-by: Patrick Robertson <robertson.patrick@gmail.com>
2025-01-25[utils] `sanitize_path`: Fix some incorrect behavior (#11923)Simon Sawicki
Authored by: Grub4K
2024-12-02[cleanup] Bump ruff to 0.8.x (#11608)sepro
Authored by: seproDev
2024-11-17[cleanup] Deprecate more compat functions (#11439)sepro
Authored by: seproDev
2024-11-15[utils] `subs_list_to_dict`: Add `lang` default parameter (#11508)Simon Sawicki
Authored by: Grub4K
2024-11-15[utils] Fix `join_nonempty`, add `**kwargs` to `unpack` (#11559)Simon Sawicki
Authored by: Grub4K
2024-11-04[cleanup] Misc (#11347)sepro
Closes #11361 Authored by: avagordon01, bashonly, grqz, Grub4K, seproDev Co-authored-by: Ava Gordon <avagordon01@gmail.com> Co-authored-by: bashonly <bashonly@protonmail.com> Co-authored-by: N/Ame <173015200+grqz@users.noreply.github.com> Co-authored-by: Simon Sawicki <contact@grub4k.xyz>
2024-11-03[core] Prioritize AV1 (#11153)sepro
Authored by: seproDev
2024-11-03[utils] Fix and improve `find_element` and `find_elements` (#11443)bashonly
Fix d710a6ca7c622705c0c8c8a3615916f531137d5d Authored by: bashonly, Grub4K Co-authored-by: Simon Sawicki <contact@grub4k.xyz>
2024-11-02[utils] Allow partial application for even more functions (#11437)Simon Sawicki
Fixes b6dc2c49e8793c6dfa21275e61caf49ec1148b81 Authored by: Grub4K
2024-10-30[utils] Allow partial application for more functions (#11391)bashonly
Also adds the `trim_str` traversal helper Authored by: bashonly, Grub4K Co-authored-by: Simon Sawicki <contact@grub4k.xyz>
2024-10-29Allow thumbnails with `.jpe` extension (#11408)bashonly
Fix 5ce582448ececb8d9c30c8c31f58330090ced03a Closes #11407 Authored by: bashonly
2024-10-29[utils] Fix `find_element` by class (#11402)bashonly
Fix d710a6ca7c622705c0c8c8a3615916f531137d5d Authored by: bashonly
2024-10-27[core] Populate format sorting fields before dependent fields (#11353)Simon Sawicki
Authored by: Grub4K
2024-10-23Remove Python 3.8 support (#11321)bashonly
Closes #10086 Authored by: bashonly
2024-10-22[cleanup] Misc (#11216)Simon Sawicki
- Add Python 3.13 to CI, finalize 3.13 support - Remove Python 3.8 from CI in preparation for removing 3.8 support - Document that PyPy3.8 and PyPy3.9 are no longer supported - Usual documentation fixes and code cleanup Closes #8248, Closes #11146, Closes #11149, Closes #11211 Authored by: Grub4K, grqz, DTrombett, KarboniteKream, bashonly, mikkovedru, seproDev Co-authored-by: N/Ame <173015200+grqz@users.noreply.github.com> Co-authored-by: DTrombett <d@trombett.org> Co-authored-by: =?UTF-8?q?Klemen=20Ko=C5=A1ir?= <klemen.kosir@kream.io> Co-authored-by: bashonly <88596187+bashonly@users.noreply.github.com> Co-authored-by: Mikko Vedru <mikko.vedru@gmail.com> Co-authored-by: sepro <sepro@sepr0.com>
2024-10-20Add option `--plugin-dirs` (#11277)Imran Hussain
Closes #3260 Authored by: imranh2, coletdjnz Co-authored-by: coletdjnz <coletdjnz@protonmail.com>
2024-10-16[utils] `Popen`: Reset PyInstaller environment (#11258)bashonly
- Forces spawning independent subprocesses for exes bundled with PyInstaller>=6.10 - Fixes regression introduced in fb8b7f226d251e521a89b23c415e249e5b788e5c - Ref: https://pyinstaller.org/en/v6.10.0/CHANGES.html#incompatible-changes Closes #11259 Authored by: bashonly, Grub4K Co-authored-by: Simon Sawicki <contact@grub4k.xyz>
2024-10-13Add extractor helpers (#10653)Simon Sawicki
Authored by: Grub4K
2024-10-13[utils] `sanitize_path`: Reimplement function (#11198)Simon Sawicki
Authored by: Grub4K
2024-09-27[cleanup] Misc (#10807)bashonly
Closes #10751, Closes #10769, Closes #10791 Authored by: bashonly, Codenade, pzhlkj6612, seproDev, coletdjnz, grqz, Grub4K Co-authored-by: Codenade <amadeus.dorian04@gmail.com> Co-authored-by: Mozi <29089388+pzhlkj6612@users.noreply.github.com> Co-authored-by: sepro <4618135+seproDev@users.noreply.github.com> Co-authored-by: coletdjnz <coletdjnz@protonmail.com> Co-authored-by: N/Ame <173015200+grqz@users.noreply.github.com> Co-authored-by: Simon Sawicki <contact@grub4k.xyz>
2024-09-27Fix format sorting bug with vp9.2 vcodec (#10884)rakslice
Authored by: rakslice
2024-09-13[utils] `mimetype2ext`: Recognize `aacp` as `aac` (#10860)bashonly
Authored by: bashonly
2024-07-29[utils] `unified_timestamp`: Recognize Sunday (#10589)bashonly
Authored by: bashonly
2024-07-16[cleanup] Misc (#10487)bashonly
Closes #10483 Authored by: bashonly
2024-07-14[utils] `parse_codecs`: Fix parsing of mixed case codec stringsbashonly
Authored by: bashonly
2024-07-07[cleanup] Misc (#10383)bashonly
Authored by: bashonly
2024-07-05[core] Address gaps in allowed extensions (#10362)bashonly
Adds some extensions missing in 5ce582448ececb8d9c30c8c31f58330090ced03a Closes #10360, Closes #10365 Authored by: bashonly
2024-07-03[core] Fix `--ignore-no-formats-error` (#10345)bashonly
Fixes regression in 5ce582448ececb8d9c30c8c31f58330090ced03a Closes #10344 Authored by: Grub4K Co-authored-by: Simon Sawicki <contact@grub4k.xyz>
2024-07-02[core] Disallow unsafe extensions (CVE-2024-38519)Simon Sawicki
Ref: https://github.com/yt-dlp/yt-dlp/security/advisories/GHSA-79w7-vh3h-8g4j Authored by: Grub4K
2024-06-12[cleanup] Add more ruff rules (#10149)sepro
Authored by: seproDev Reviewed-by: bashonly <88596187+bashonly@users.noreply.github.com> Reviewed-by: Simon Sawicki <contact@grub4k.xyz>
2024-05-26[misc] Cleanup (#9765)Simon Sawicki
Closes #9763 Authored by: bashonly, seproDev, Grub4K Co-authored-by: bashonly <88596187+bashonly@users.noreply.github.com> Co-authored-by: sepro <4618135+seproDev@users.noreply.github.com>
2024-05-26[ie/youtube] Extract upload timestamp if available (#9856)coletdjnz
Closes #4962, Closes #9829 Authored by: coletdjnz
2024-04-27[core/windows] Improve shell quoting and tests (#9802)Simon Sawicki
Authored by: Grub4K
2024-04-09[core] Prevent RCE when using `--exec` with `%q` (CVE-2024-22423)Simon Sawicki
The shell escape function now properly escapes `%`, `\\` and `\n`. `utils.Popen` as well as `%q` output template expansion have been patched accordingly. Prior to this fix using `--exec` together with `%q` when on Windows could cause remote code to execute. See https://github.com/yt-dlp/yt-dlp/security/advisories/GHSA-hjq6-52gw-2g7p for more details. Authored by: Grub4K
2024-04-01[utils] `traverse_obj`: Convenience improvements (#9577)Simon Sawicki
Add support for: - `http.cookies.Morsel` - Multi type filters (`{type, type}`) Authored by: Grub4K
2024-04-01[cleanup] Standardize `import datetime as dt` (#8978)pukkandan
2024-04-01[core] Fix `filesize_approx` calculation (#9560)sepro
Reverts 22e4dfacb61f62dfbb3eb41b31c7b69ba1059b80 Despite being documented as `Kbit/s`, the extractors/manifests were returning bitrates in SI units of kilobits/sec. Authored by: seproDev, pukkandan
2024-03-30[utils] `traverse_obj`: Allow unbranching using `all` and `any` (#9571)Simon Sawicki
Authored by: Grub4K
2024-03-11[cleanup] Misc (#8968)pukkandan
Authored by: pukkandan, bashonly, seproDev
2024-03-11[utils] Improve `repr` of `DateRange`, `match_filter_func`pukkandan
2024-03-11[cleanup] Fix misc bugs (#8968)pukkandan
Closes #8816 Authored by: bashonly, seproDev, pukkandan, Grub4k
2024-03-11[docs] Misc Cleanup (#8977)pukkandan
Closes #8355, #8944 Authored by: bashonly, Grub4k, Arthurszzz, seproDev, pukkandan Co-authored-by: sepro <4618135+seproDev@users.noreply.github.com> Co-authored-by: bashonly <bashonly@protonmail.com> Co-authored-by: Arthurszzz <minecraftgamerarthur@gmail.com> Co-authored-by: Simon Sawicki <accounts@grub4k.xyz> Co-authored-by: bashonly <88596187+bashonly@users.noreply.github.com>