Commit Graph

85 Commits (2aeebc40eaf94d4e695c243cf5ee570714ea1215)

Author SHA1 Message Date
sepro f95a92b3d0
[cleanup] Deprecate more compat functions ()
Authored by: seproDev
Simon Sawicki c014fbcddc
[utils] `subs_list_to_dict`: Add `lang` default parameter ()
Authored by: Grub4K
Simon Sawicki 39d79c9b9c
[utils] Fix `join_nonempty`, add `**kwargs` to `unpack` ()
Authored by: Grub4K
sepro 197d0b03b6
[cleanup] Misc ()
Closes 
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>
sepro 3945677a75
[core] Prioritize AV1 ()
Authored by: seproDev
bashonly b103aca24d
[utils] Fix and improve `find_element` and `find_elements` ()
Fix d710a6ca7c

Authored by: bashonly, Grub4K

Co-authored-by: Simon Sawicki <contact@grub4k.xyz>
Simon Sawicki 422195ec70
[utils] Allow partial application for even more functions ()
Fixes b6dc2c49e8

Authored by: Grub4K
bashonly b6dc2c49e8
[utils] Allow partial application for more functions ()
Also adds the `trim_str` traversal helper

Authored by: bashonly, Grub4K

Co-authored-by: Simon Sawicki <contact@grub4k.xyz>
bashonly 5bc5fb2835
Allow thumbnails with `.jpe` extension ()
Fix 5ce582448e

Closes 
Authored by: bashonly
bashonly f93c16395c
[utils] Fix `find_element` by class ()
Fix d710a6ca7c

Authored by: bashonly
Simon Sawicki 5c880ef42e
[core] Populate format sorting fields before dependent fields ()
Authored by: Grub4K
bashonly d784464399
Remove Python 3.8 support ()
Closes 
Authored by: bashonly
Simon Sawicki 67adeb7bab
[cleanup] Misc ()
- 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 , Closes , Closes , Closes 
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>
Imran Hussain 0f593dca9f
Add option `--plugin-dirs` ()
Closes 
Authored by: imranh2, coletdjnz

Co-authored-by: coletdjnz <coletdjnz@protonmail.com>
bashonly fbc66e3ab3
[utils] `Popen`: Reset PyInstaller environment ()
- Forces spawning independent subprocesses for exes bundled with PyInstaller>=6.10
- Fixes regression introduced in fb8b7f226d
- Ref: https://pyinstaller.org/en/v6.10.0/CHANGES.html#incompatible-changes

Closes 
Authored by: bashonly, Grub4K

Co-authored-by: Simon Sawicki <contact@grub4k.xyz>
Simon Sawicki d710a6ca7c
Add extractor helpers ()
Authored by: Grub4K
Simon Sawicki 85b87c991a
[utils] `sanitize_path`: Reimplement function ()
Authored by: Grub4K
bashonly c6387abc1a
[cleanup] Misc ()
Closes , Closes , Closes 
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>
rakslice 8f4ea14680
Fix format sorting bug with vp9.2 vcodec ()
Authored by: rakslice
bashonly cc85596d5b
[utils] `mimetype2ext`: Recognize `aacp` as `aac` ()
Authored by: bashonly
bashonly 6daf2c27c0
[utils] `unified_timestamp`: Recognize Sunday ()
Authored by: bashonly
bashonly 89a161e8c6
[cleanup] Misc ()
Closes 
Authored by: bashonly
bashonly cc0070f649 [utils] `parse_codecs`: Fix parsing of mixed case codec strings
Authored by: bashonly
bashonly b337d2989c
[cleanup] Misc ()
Authored by: bashonly
bashonly 2469119490
[core] Address gaps in allowed extensions ()
Adds some extensions missing in 5ce582448e

Closes , Closes 
Authored by: bashonly
bashonly cc767e9490
[core] Fix `--ignore-no-formats-error` ()
Fixes regression in 5ce582448e

Closes 
Authored by: Grub4K

Co-authored-by: Simon Sawicki <contact@grub4k.xyz>
Simon Sawicki 5ce582448e
[core] Disallow unsafe extensions (CVE-2024-38519)
Ref: https://github.com/yt-dlp/yt-dlp/security/advisories/GHSA-79w7-vh3h-8g4j

Authored by: Grub4K
sepro add96eb9f8
[cleanup] Add more ruff rules ()
Authored by: seproDev

Reviewed-by: bashonly <88596187+bashonly@users.noreply.github.com>
Reviewed-by: Simon Sawicki <contact@grub4k.xyz>
Simon Sawicki 5c019f6328
[misc] Cleanup ()
Closes 
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>
coletdjnz 96a134dea6
[ie/youtube] Extract upload timestamp if available ()
Closes , Closes 
Authored by: coletdjnz
Simon Sawicki 64766459e3
[core/windows] Improve shell quoting and tests ()
Authored by: Grub4K
Simon Sawicki ff07792676
[core] Prevent RCE when using `--exec` with `%q` (CVE-2024-22423)
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
Simon Sawicki 32abfb00bd
[utils] `traverse_obj`: Convenience improvements ()
Add support for:
- `http.cookies.Morsel`
- Multi type filters (`{type, type}`)

Authored by: Grub4K
pukkandan c305a25c1b
[cleanup] Standardize `import datetime as dt` ()
sepro 86e3b82261
[core] Fix `filesize_approx` calculation ()
Reverts 22e4dfacb6

Despite being documented as `Kbit/s`, the extractors/manifests were returning bitrates in SI units of kilobits/sec.

Authored by: seproDev, pukkandan
Simon Sawicki 3699eeb67c
[utils] `traverse_obj`: Allow unbranching using `all` and `any` ()
Authored by: Grub4K
pukkandan 615a84447e
[cleanup] Misc ()
Authored by: pukkandan, bashonly, seproDev
pukkandan 45491a2a30
[utils] Improve `repr` of `DateRange`, `match_filter_func`
pukkandan 93240fc184
[cleanup] Fix misc bugs ()
Closes 

Authored by: bashonly, seproDev, pukkandan, Grub4k
pukkandan 47ab66db0f
[docs] Misc Cleanup ()
Closes , 

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>
Simon Sawicki ffbd4f2a02
[utils] `traverse_obj`: Support `xml.etree.ElementTree.Element` ()
Authored by: Grub4K
Simon Sawicki f9fb3ce86e
[cleanup] Misc ()
Authored by: bashonly, pukkandan, seproDev, Grub4K

Co-authored-by: bashonly <bashonly@protonmail.com>
Co-authored-by: pukkandan <pukkandan.ytdlp@gmail.com>
Co-authored-by: sepro <4618135+seproDev@users.noreply.github.com>
Simon Sawicki 65de7d204c
Update to ytdl-commit-be008e6 ()
- [utils] Make restricted filenames ignore some Unicode categories (by dirkf)
- [ie/telewebion] Fix extraction (by Grub4K)
- [ie/imgur] Overhaul extractor (by bashonly, Grub4K)
- [ie/EpidemicSound] Add extractor (by Grub4K)

Authored by: bashonly, dirkf, Grub4K

Co-authored-by: bashonly <bashonly@protonmail.com>
coletdjnz 196eb0fe77
[networking] Strip whitespace around header values ()
Fixes https://github.com/yt-dlp/yt-dlp/issues/8729
Authored by: coletdjnz
Simon Sawicki 0b6f829b1d
[utils] `traverse_obj`: Move `is_user_input` into output template ()
Authored by: Grub4K
pukkandan a174c453ee
Let `read_stdin` obey `--quiet`
Closes 
coletdjnz ccfd70f4c2
[rh:websockets] Migrate websockets to networking framework ()
* Adds a basic WebSocket framework
* Introduces new minimum `websockets` version of 12.0
* Deprecates `WebSocketsWrapper`

Fixes https://github.com/yt-dlp/yt-dlp/issues/8439

Authored by: coletdjnz
bashonly f04b5bedad
[ie] Do not smuggle `http_headers`
See: https://github.com/yt-dlp/yt-dlp/security/advisories/GHSA-3ch3-jhc6-5r8x

Authored by: coletdjnz
bashonly 84e26038d4
[utils] `write_xattr`: Use `os.setxattr` if available ()
Closes 
Authored by: bashonly, Grub4K

Co-authored-by: Simon Sawicki <contact@grub4k.xyz>
Simon Sawicki 1c51c520f7
[fd/fragment] Improve progress calculation ()
This uses the download speed from all threads and also adds smoothing to speed and eta

Authored by: Grub4K