aboutsummaryrefslogtreecommitdiff
path: root/yt_dlp/utils.py
AgeCommit message (Collapse)Author
2023-05-20[cleanup, utils] Split into submodules (#7090)coletdjnz
Closes https://github.com/yt-dlp/yt-dlp/pull/2173 Authored by: pukkandan, coletdjnz Co-authored-by: pukkandan <pukkandan.ytdlp@gmail.com>
2023-05-20[cleanup] Miscpukkandan
Closes #7030, closes #6967
2023-05-05[utils] `locked_file`: Fix for virtiofs (#6840)Eveldee
Authored by: brandon-dacrib Closes #6823
2023-04-30[utils] `traverse_obj`: More fixes (#6959)Simon Sawicki
- Fix result when branching with `traverse_string` - Fix `slice` path on `dict`s - Fix tests and docstrings from 21b5ec86c2c37d10c5bb97edd7051d3aac16bb3e - Add `is_iterable_like` helper function Authored by: Grub4K
2023-04-24[utils] `traverse_obj`: Allow iterables in traversal (#6902)Simon Sawicki
Authored by: Grub4K
2023-04-18[extractor/sbs] Overhaul extractor for new API (#6839)vidiot720
Closes #6543 Authored by: vidiot720, dirkf, bashonly
2023-03-25[utils] `js_to_json`: Implement template strings (#6623)Simon Sawicki
Authored by: Grub4K
2023-03-07[utils] `write_string`: Fix noconsole behaviorSimon Sawicki
Ref: https://github.com/pyinstaller/pyinstaller/pull/7217 Authored by: Grub4K
2023-03-04Add option `--break-match-filters`pukkandan
* Deprecates `--break-on-reject` Closes #5962
2023-03-03Fix `--break-on-existing` with `--lazy-playlist`pukkandan
Closes #6399
2023-03-03[cleanup, jsinterp] Give functions names to help debuggingpukkandan
2023-02-24[utils] `LenientJSONDecoder`: Parse unclosed objectspukkandan
2023-02-23[utils] `Popen`: Shim undocumented `text_mode` propertySimon Sawicki
Fixes #6317 Authored by: Grub4K
2023-02-17Update to ytdl-commit-2dd6c6epukkandan
[YouTube] Avoid crash if uploader_id extraction fails https://github.com/ytdl-org/youtube-dl/commit/2dd6c6edd8e0fc5e45865b8e6d865e35147de772 Except: * 295736c9cba714fb5de7d1c3dd31d86e50091cf8 [jsinterp] Improve parsing * 384f632e8a9b61e864a26678d85b2b39933b9bae [ITV] Overhaul ITV extractor * 33db85c571304bbd6863e3407ad8d08764c9e53b [feat]: Add support to external downloader aria2p
2023-02-17[cleanup] Miscpukkandan
Closes #5897
2023-02-17[utils] Fix race condition in `make_dir` (#6089)Alex Ionescu
Authored by: aionescu
2023-02-17[utils] Don't use Content-length with encoding (#6176)Felix Yan
Authored by: felixonmars Closes #3772, #6178
2023-02-10[utils] `traverse_obj`: Fix more bugsSimon Sawicki
and cleanup uses of `default=[]` Continued from b1bde57bef878478e3503ab07190fd207914ade9
2023-02-08[utils] `traverse_obj`: Fix several behavioral problemsSimon Sawicki
See #6180 for further info Authored by: Grub4K
2023-02-04[extractor/txxx] Add extractors (#5240)chio0hai
Authored by: chio0hai Closes #5021
2023-02-02[utils] `traverse_obj`: Various improvementsSimon Sawicki
- Add `set` key for transformations/filters - Add `re.Match` group names - Fix behavior for `expected_type` with `dict` key - Raise for filter function signature mismatch in debug Authored by: Grub4K
2023-01-31[utils] Fix `time_seconds` to use the provided TZ (#6118)Lesmiscore
Authored by: Lesmiscore, Grub4K Fixes https://github.com/yt-dlp/yt-dlp/pull/6056
2023-01-25[utils] Use local kernel32 for file locking on WindowsSimon Sawicki
Ref: https://github.com/ytdl-org/youtube-dl/issues/21545 Authored by: Grub4K
2023-01-07Fix config locations (#5933)Simon Sawicki
Bug in 8e40b9d1ec132ae1bcac50b3ee520ece46ac9c55 Closes #5953 Authored by: Grub4k, coletdjnz, pukkandan
2023-01-03[utils] `windows_enable_vt_mode`: Better error handlingpukkandan
Closes #5927
2023-01-03[utils] `mimetype2ext`: weba is not standardpukkandan
Fix bug in fbb73833067ba742459729809679a62f34b3e41e, 2647c933b8ed22f95dd8e9866c4db031867a1bc8 Closes #5935
2023-01-02[cleanup] Miscpukkandan
Closes #5576, closes #5887
2023-01-02[docs] Improvementspukkandan
Closes #5846, closes #5774
2023-01-02[downloader/aria2c] Native progress for aria2c via RPC (#3724)Lesmiscore
Authored by: Lesmiscore, pukkandan Closes #2038
2023-01-01[utils] `get_exe_version`: Detect broken executablespukkandan
Authored by: dirkf, pukkandan Closes #5561
2023-01-01Improve plugin architecture (#5553)Matthew
to make plugins easier to develop and use: * Plugins are now loaded as namespace packages. * Plugins can be loaded in any distribution of yt-dlp (binary, pip, source, etc.). * Plugin packages can be installed and managed via pip, or dropped into any of the documented locations. * Users do not need to edit any code files to install plugins. * Backwards-compatible with previous plugin architecture. As a side-effect, yt-dlp will now search in a few more locations for config files. Closes https://github.com/yt-dlp/yt-dlp/issues/1389 Authored by: flashdagger, coletdjnz, pukkandan, Grub4K Co-authored-by: Marcel <flashdagger@googlemail.com> Co-authored-by: pukkandan <pukkandan.ytdlp@gmail.com> Co-authored-by: Simon Sawicki <accounts@grub4k.xyz>
2022-12-30Add `weba` to known extensionspukkandan
2022-12-30[utils] js_to_json: Fix bug in f55523c (#5771)ChillingPepper
Authored by: ChillingPepper, pukkandan
2022-12-30Add pre-processor stage `video`pukkandan
Related: #456, #5808
2022-12-29[extractor/wistia] Improve extension detection (#5415)bashonly
Closes #5053 Authored by: bashonly, Grub4k, pukkandan
2022-12-19Deprioritize HEVC-over-FLV formats (#5823)Lesmiscore
Authored by: Lesmiscore
2022-12-09Add `ac4` to known codecspukkandan
Note: ffmpeg does not currently support this format Related #5738
2022-12-05[utils] windows_enable_vt_mode: Proper implementationpukkandan
Authored by: Grub4K
2022-12-03[cleanup] Miscpukkandan
2022-11-30[utils] Make `ExtractorError` mutablepukkandan
2022-11-19[FormatSort] Add `mov` to `vext`pukkandan
Closes #5581
2022-11-17[utils] Move format sorting code into `utils`pukkandan
2022-11-17[utils] Move `FileDownloader.parse_bytes` into utilspukkandan
2022-11-16[cleanup] Miscpukkandan
Closes #5541
2022-11-13[utils] `classproperty`: Add cache supportpukkandan
2022-11-12Fix bugs in `PlaylistEntries`pukkandan
2022-11-11[cleanup] MiscRobert Geislinger
Closes #5471, Closes #5312 Authored by: pukkandan, Alienmaster
2022-11-11[build] Create armv7l and aarch64 releases (#5449)MrOctopus
Closes #5436 Authored by: MrOctopus, pukkandan
2022-11-09[extractor/bitchute] Improve `BitChuteChannelIE` (#5066)MMM
Authored by: flashdagger, pukkandan
2022-11-07[cleanup] Lint and misc cleanuppukkandan