aboutsummaryrefslogtreecommitdiffstats
path: root/yt_dlp/utils.py
Commit message (Collapse)AuthorAgeFilesLines
...
* [extractor/archiveorg] Improve handling of formats (#4461)coletdjnz2022-07-291-0/+1
| | | | | | | * Ignore private formats if not logged in (fixes https://github.com/yt-dlp/yt-dlp/issues/3832) * Prefer original formats * Support mpg formats Authored by: coletdjnz, pukkandan
* [youtube,twitch] Allow waiting for channels to become livepukkandan2022-07-261-0/+8
| | | | Closes #2597
* Reject entire playlists faster with `--match-filter`pukkandan2022-07-261-1/+1
| | | | | | Rejected based on `playlist_id` etc can be checked before any entries are extracted Related: #4383
* Remove Python 3.6 supportpukkandan2022-07-181-1/+2
| | | | Closes #3764
* Fix a904a7f8c6edc42046f0a78fb279739d500d4887pukkandan2022-07-151-24/+7
|
* Allow users to specify encoding in each config files (#4357)Lesmiscore2022-07-151-10/+52
| | | Authored by: Lesmiscore
* [utils] Fix `get_domain`pukkandan2022-07-131-1/+5
| | | | | | Bug in ae61d108dd83a951b6e8a27e1fb969682416150d Closes #4344
* [utils, cleanup] Refactor parse_codecspukkandan2022-07-111-18/+17
|
* [cleanup] Misc cleanuppukkandan2022-07-091-7/+16
|
* Do not load system certificates when `certifi` is usedpukkandan2022-07-071-11/+12
| | | | | | | | | This causes `CERTIFICATE_VERIFY_FAILED` if there is an expired/bad certificate in the system store Partially reverts 8a82af3511b4379af0d239dbd01c672c17a2c46a Related: #4145
* [options] Fix aliases to `--config-location`pukkandan2022-07-011-6/+9
|
* Fix bug in 612f2be5d3924540158dfbe5f25d841f04cff8c6Lesmiscore2022-06-301-1/+1
|
* [cleanup] Misc cleanuppukkandan2022-06-291-5/+4
|
* [update] Ability to set a maximum version for specific variantspukkandan2022-06-291-6/+37
|
* [cleanup] Fix some typos (#4194)crazymoose777562022-06-261-1/+1
| | | Authored by: crazymoose77756
* [extractor] Fix `_create_request` when headers is Nonepukkandan2022-06-251-2/+2
| | | | Closes #4164
* [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