aboutsummaryrefslogtreecommitdiffstats
path: root/yt_dlp/utils.py
Commit message (Collapse)AuthorAgeFilesLines
* [compat] Remove deprecated functions from core codepukkandan2022-06-251-47/+42
|
* [cleanup] Consistent style for file headspukkandan2022-06-251-3/+2
|
* [compat] Remove more functionspukkandan2022-06-251-65/+59
| | | | Removing any more will require changes to a large number of extractors
* [utils] Fix inconsistent default handling between HTTP and HTTPS requests ↵coletdev2022-06-241-1/+1
| | | | | | | | | (#4158) Default headers such as `Content-Type` were only being added for HTTPS requests among other handling. Fixes bug in https://github.com/ytdl-org/youtube-dl/commit/be4a824d74add1a3b78b8244dff12f4f078f168a Authored-by: coletdjnz
* Fix playlist error handlingpukkandan2022-06-221-0/+2
| | | | Bug in 7e88d7d78f452ea69f06bbdf23f82e9ad7c3de5e
* [update] Expose more functionality to APIpukkandan2022-06-211-3/+4
|
* [utils] `ExtractorError`: Fix `exc_info`pukkandan2022-06-201-0/+2
|
* Bugfix for 7b2c3f47c6b586a208655fcfc716bba3f8619d1epukkandan2022-06-201-7/+7
|
* [cleanup] Miscpukkandan2022-06-201-29/+37
|
* [docs] Improvementspukkandan2022-06-201-1/+1
|
* [extractor/BiliIntl] Fix metadata extractionpukkandan2022-06-201-0/+4
| | | | Closes #4116
* Improve error handling of bad config filespukkandan2022-06-181-0/+2
| | | | Related: #824
* [cleanup, utils] Don't use kwargs for `format_field`pukkandan2022-06-181-3/+3
|
* [cleanup] Minor fixes (#4096)christoph-heinrich2022-06-171-1/+1
| | | Authored by: christoph-heinrich
* Add option `--lazy-playlist` to process entries as they are receivedpukkandan2022-06-171-44/+37
|
* Add slicing notation to `--playlist-items`pukkandan2022-06-171-0/+152
| | | | | | | | * Adds support for negative indices and step * Add `-I` as alias for `--playlist-index` * Deprecates `--playlist-start`, `--playlist-end`, `--playlist-reverse`, `--no-playlist-reverse` Closes #2951, Closes #2853
* [utils] `Popen`: Refactor to use contextmanagerpukkandan2022-06-161-17/+25
| | | | Fixes https://github.com/yt-dlp/yt-dlp/issues/3531#issuecomment-1156223597
* [utils] `locked_file`: Fix for PyPy on Windowspukkandan2022-06-131-1/+2
|
* [cleanup] Misc fixes (see desc)pukkandan2022-06-121-21/+12
| | | | | | | | | | | | | | * [tvver] Fix bug in 6837633a4a614920b6e43ffc6b4b8590dca8c9d7 - Closes #4054 * [rumble] Fix tests - Closes #3976 * [make] Remove `cat` abuse - Closes #3989 * [make] Revert #3684 - Closes #3814 * [utils] Improve `get_elements_by_class` - Closes #3993 * [utils] Inherit `Namespace` from `types.SimpleNamespace` * [utils] Use `re.fullmatch` for matching filters * [jsinterp] Handle quotes in `_separate` * [make_readme] Allow overshooting last line Authored by: pukkandan, kwconder, MrRawes, Lesmiscore
* [cleanup] Misc fixespukkandan2022-06-111-4/+4
| | | | Closes #4027
* Add option `--download-sections` to download video partiallypukkandan2022-06-071-0/+17
| | | | Closes #52, Closes #3932
* [extractor] Add `_search_json`pukkandan2022-06-061-0/+13
| | | | | All fetching of JSON objects should eventually be done with this function but only `youtube` is being refactored for now
* [cleanup] Misc fixespukkandan2022-06-031-3/+6
| | | | | | Cherry-picks from: #3498, #3947 Related: #3949, https://github.com/yt-dlp/yt-dlp/issues/1839#issuecomment-1140313836 Authored by: pukkandan, flashdagger, gamer191
* [utils] Send HTTP/1.1 ALPN extension (#3889)coletdev2022-05-281-0/+7
| | | | | | | Some servers may reject requests if not sent (e.g. fingerprinting) Fixes #3878 Authored by: coletdjnz
* [cleanup] Misc fixes and cleanuppukkandan2022-05-271-29/+32
| | | | Closes #3780, Closes #3853, Closes #3850
* `--config-location -` to provide options interactivelypukkandan2022-05-271-0/+9
|
* [build, cleanup] Refactorpukkandan2022-05-221-2/+2
| | | | Closes #3835, #3837
* [cleanup] Miscpukkandan2022-05-211-41/+32
|
* [utils] Fix bug in 0b9c08b47bb5e95c21b067044ace4e824d19a9c2pukkandan2022-05-201-1/+18
| | | | | * Cache of `supports_terminal_sequences` must be reset after enabling VT mode * and move `windows_enable_vt_mode` to utils to avoid cyclic imports
* [utils] Improve performance using `functools.cache`pukkandan2022-05-191-2/+5
| | | | Closes #3786
* [utils] `ISO3166Utils`: Add `EU` and `AP`pukkandan2022-05-191-0/+3
| | | | Fixes https://github.com/yt-dlp/yt-dlp/pull/3302#discussion_r875528517
* Add option `--alias`pukkandan2022-05-191-8/+14
|
* [cleanup] Minor fixespukkandan2022-05-181-1/+3
|
* [utils] `is_html`: Handle double BOMpukkandan2022-05-181-6/+5
| | | | Closes #2885
* Bugfix for 591bb9d3553a4d7b453777c1e28e0948741e3b50pukkandan2022-05-171-4/+7
| | | | Closes #3769
* Fix color in `-q -F`pukkandan2022-05-171-2/+14
| | | | | | and convert `ydl._out_files`/`ydl._allow_colors` to `Namespace` Closes #3761
* [cleanup] Misc cleanuppukkandan2022-05-171-36/+30
|
* [extractor] Use classmethod/property where possiblepukkandan2022-05-131-0/+1
| | | | | | and refactor lazy extractors accordingly. This reduces the need to create extractor instances
* Fix `--date today`pukkandan2022-05-111-17/+15
| | | | Closes #3704
* [cookies] Allow `cookiefile` to be a text streampukkandan2022-05-111-2/+22
| | | | Closes #3674
* Bugfix for 59f943cd5097e9bdbc3cb3e6b5675e43d369341apukkandan2022-05-101-2/+1
| | | | Fixes: https://github.com/yt-dlp/yt-dlp/commit/59f943cd5097e9bdbc3cb3e6b5675e43d369341a#commitcomment-73251597
* [cleanup] Minor fixes (See desc)pukkandan2022-05-091-44/+43
| | | | | | | | | | * [youtube] Fix `--youtube-skip-dash-manifest` * [build] Use `$()` in `Makefile`. Closes #3684 * Fix bug in 385ffb467b2285e85a2a5495b90314ba1f8e0700 * Fix bug in 43d7f5a5d0c77556156a3f8caa6976d3908a1e38 * [cleanup] Remove unnecessary `utf-8` from `str.encode`/`bytes.decode` * [utils] LazyList: Expose unnecessarily "protected" attributes and other minor cleanup
* Allow use of weaker ciphers with `--legacy-server-connect`pukkandan2022-05-071-6/+10
| | | | Closes #2043
* Add support for SSL client certificate authentication (#3435)coletdev2022-05-021-0/+8
| | | | | | | Adds `--client-certificate`, `--client-certificate-key`, `--client-certificate-password` Authored-by: coletdjnz Co-authored-by: df <fieldhouse@gmx.net> Co-authored-by: pukkandan <pukkandan.ytdlp@gmail.com>
* Fix redirect HTTP method handling (#3577)coletdev2022-05-011-1/+13
| | | Authored by: coletdjnz
* [utils] `locked_file`: Ignore illegal seek on `truncate` (#3610)Justin Keogh2022-05-011-1/+5
| | | | | Closes #3557 Authored by: jakeogh
* [cleanup] Misc fixes (see desc)pukkandan2022-05-011-6/+6
| | | | | | | | * Do not warn when fixup is skipped for existing file * [fragment] Fix `--skip-unavailable-fragments` for HTTP Errors * [utils] write_string: Fix bug in 59f943cd5097e9bdbc3cb3e6b5675e43d369341a * [utils] parse_codecs: Subtitle codec is generally referred to as `scodec`. https://github.com/yt-dlp/yt-dlp/pull/2174#discussion_r790156048 * [docs] Remove note about permissions. Closes #3597
* [XAttrMetadata] Refactor and document dependenciespukkandan2022-05-011-72/+41
|
* [utils] YoutubeDLCookieJar: Detect and reject JSON file (#3599)Lesmiscore2022-05-011-0/+4
| | | Authored by: Lesmiscore
* [cleanup] Misc fixespukkandan2022-04-291-1/+3
| | | | Closes #3565, https://github.com/yt-dlp/yt-dlp/issues/3514#issuecomment-1105944364