aboutsummaryrefslogtreecommitdiffstats
path: root/yt_dlp/utils.py
Commit message (Collapse)AuthorAgeFilesLines
* [cleanup, utils] Split into submodules (#7090)coletdjnz2023-05-201-6528/+0
| | | | | | Closes https://github.com/yt-dlp/yt-dlp/pull/2173 Authored by: pukkandan, coletdjnz Co-authored-by: pukkandan <pukkandan.ytdlp@gmail.com>
* [cleanup] Miscpukkandan2023-05-201-4/+4
| | | | Closes #7030, closes #6967
* [utils] `locked_file`: Fix for virtiofs (#6840)Eveldee2023-05-051-4/+5
| | | | Authored by: brandon-dacrib Closes #6823
* [utils] `traverse_obj`: More fixes (#6959)Simon Sawicki2023-04-301-10/+18
| | | | | | | | - 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
* [utils] `traverse_obj`: Allow iterables in traversal (#6902)Simon Sawicki2023-04-241-4/+3
| | | Authored by: Grub4K
* [extractor/sbs] Overhaul extractor for new API (#6839)vidiot7202023-04-181-0/+4
| | | | Closes #6543 Authored by: vidiot720, dirkf, bashonly
* [utils] `js_to_json`: Implement template strings (#6623)Simon Sawicki2023-03-251-2/+9
| | | Authored by: Grub4K
* [utils] `write_string`: Fix noconsole behaviorSimon Sawicki2023-03-071-0/+3
| | | | | Ref: https://github.com/pyinstaller/pyinstaller/pull/7217 Authored by: Grub4K
* Add option `--break-match-filters`pukkandan2023-03-041-5/+10
| | | | | | * Deprecates `--break-on-reject` Closes #5962
* Fix `--break-on-existing` with `--lazy-playlist`pukkandan2023-03-031-2/+4
| | | | Closes #6399
* [cleanup, jsinterp] Give functions names to help debuggingpukkandan2023-03-031-2/+4
|
* [utils] `LenientJSONDecoder`: Parse unclosed objectspukkandan2023-02-241-8/+30
|
* [utils] `Popen`: Shim undocumented `text_mode` propertySimon Sawicki2023-02-231-1/+2
| | | | | Fixes #6317 Authored by: Grub4K
* Update to ytdl-commit-2dd6c6epukkandan2023-02-171-7/+21
| | | | | | | | | | [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
* [cleanup] Miscpukkandan2023-02-171-2/+15
| | | | Closes #5897
* [utils] Fix race condition in `make_dir` (#6089)Alex Ionescu2023-02-171-2/+2
| | | Authored by: aionescu
* [utils] Don't use Content-length with encoding (#6176)Felix Yan2023-02-171-3/+0
| | | | Authored by: felixonmars Closes #3772, #6178
* [utils] `traverse_obj`: Fix more bugsSimon Sawicki2023-02-101-8/+7
| | | | | | and cleanup uses of `default=[]` Continued from b1bde57bef878478e3503ab07190fd207914ade9
* [utils] `traverse_obj`: Fix several behavioral problemsSimon Sawicki2023-02-081-60/+81
| | | | | See #6180 for further info Authored by: Grub4K
* [extractor/txxx] Add extractors (#5240)chio0hai2023-02-041-0/+2
| | | | Authored by: chio0hai Closes #5021
* [utils] `traverse_obj`: Various improvementsSimon Sawicki2023-02-021-10/+48
| | | | | | | | - 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
* [utils] Fix `time_seconds` to use the provided TZ (#6118)Lesmiscore2023-01-311-2/+4
| | | | | Authored by: Lesmiscore, Grub4K Fixes https://github.com/yt-dlp/yt-dlp/pull/6056
* [utils] Use local kernel32 for file locking on WindowsSimon Sawicki2023-01-251-1/+1
| | | | | | Ref: https://github.com/ytdl-org/youtube-dl/issues/21545 Authored by: Grub4K
* Fix config locations (#5933)Simon Sawicki2023-01-071-18/+4
| | | | | | Bug in 8e40b9d1ec132ae1bcac50b3ee520ece46ac9c55 Closes #5953 Authored by: Grub4k, coletdjnz, pukkandan
* [utils] `windows_enable_vt_mode`: Better error handlingpukkandan2023-01-031-7/+4
| | | | Closes #5927
* [utils] `mimetype2ext`: weba is not standardpukkandan2023-01-031-1/+1
| | | | | Fix bug in fbb73833067ba742459729809679a62f34b3e41e, 2647c933b8ed22f95dd8e9866c4db031867a1bc8 Closes #5935
* [cleanup] Miscpukkandan2023-01-021-1/+1
| | | | Closes #5576, closes #5887
* [docs] Improvementspukkandan2023-01-021-1/+1
| | | | Closes #5846, closes #5774
* [downloader/aria2c] Native progress for aria2c via RPC (#3724)Lesmiscore2023-01-021-0/+9
| | | | | Authored by: Lesmiscore, pukkandan Closes #2038
* [utils] `get_exe_version`: Detect broken executablespukkandan2023-01-011-4/+10
| | | | | Authored by: dirkf, pukkandan Closes #5561
* Improve plugin architecture (#5553)Matthew2023-01-011-17/+38
| | | | | | | | | | | | | | | | | 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>
* Add `weba` to known extensionspukkandan2022-12-301-5/+5
|
* [utils] js_to_json: Fix bug in f55523c (#5771)ChillingPepper2022-12-301-1/+7
| | | Authored by: ChillingPepper, pukkandan
* Add pre-processor stage `video`pukkandan2022-12-301-1/+1
| | | | Related: #456, #5808
* [extractor/wistia] Improve extension detection (#5415)bashonly2022-12-291-44/+76
| | | | Closes #5053 Authored by: bashonly, Grub4k, pukkandan
* Deprioritize HEVC-over-FLV formats (#5823)Lesmiscore2022-12-191-0/+6
| | | Authored by: Lesmiscore
* Add `ac4` to known codecspukkandan2022-12-091-3/+3
| | | | | | Note: ffmpeg does not currently support this format Related #5738
* [utils] windows_enable_vt_mode: Proper implementationpukkandan2022-12-051-8/+30
| | | | Authored by: Grub4K
* [cleanup] Miscpukkandan2022-12-031-1/+4
|
* [utils] Make `ExtractorError` mutablepukkandan2022-11-301-6/+15
|
* [FormatSort] Add `mov` to `vext`pukkandan2022-11-191-2/+2
| | | | Closes #5581
* [utils] Move format sorting code into `utils`pukkandan2022-11-171-0/+286
|
* [utils] Move `FileDownloader.parse_bytes` into utilspukkandan2022-11-171-5/+14
|
* [cleanup] Miscpukkandan2022-11-161-1/+1
| | | | Closes #5541
* [utils] `classproperty`: Add cache supportpukkandan2022-11-131-3/+12
|
* Fix bugs in `PlaylistEntries`pukkandan2022-11-121-3/+3
|
* [cleanup] MiscRobert Geislinger2022-11-111-3/+1
| | | | | | Closes #5471, Closes #5312 Authored by: pukkandan, Alienmaster
* [build] Create armv7l and aarch64 releases (#5449)MrOctopus2022-11-111-1/+2
| | | | Closes #5436 Authored by: MrOctopus, pukkandan
* [extractor/bitchute] Improve `BitChuteChannelIE` (#5066)MMM2022-11-091-0/+2
| | | Authored by: flashdagger, pukkandan
* [cleanup] Lint and misc cleanuppukkandan2022-11-071-0/+1
|