aboutsummaryrefslogtreecommitdiff
path: root/yt_dlp/utils.py
AgeCommit message (Collapse)Author
2021-09-30[postprocessor] Add plugin supportpukkandan
Adds option `--use-postprocessor` to enable them
2021-09-29Workaround for bug in `ssl.SSLContext.load_default_certs` (#1118)pukkandan
* Remove old compat code * Load certificates only when not using nocheckcertificate * Load each certificate individually Closes #1060 Related bugs.python.org/issue35665, bugs.python.org/issue4531
2021-09-27[outtmpl] Alternate form of format type `l` for `\n` delimited listpukkandan
2021-09-26[outtmpl] Format type `U` for unicode normalizationpukkandan
2021-09-23[atv.at] Use jwt for API (#1012)NeroBurner
The jwt token is implemented according to RFC7519 Closes #988 Authored by: NeroBurner
2021-09-22Basic framework for simultaneous download of multiple formats (#1036)The Hatsune Daishi
Authored by: nao20010128nao
2021-09-19[CGTN] Add extractor (#981)Yuan Chao
Authored by: chao813
2021-09-19[utils] Improve `extract_timezone`pukkandan
Code taken from: https://github.com/ytdl-org/youtube-dl/pull/29845 Fixes: https://github.com/ytdl-org/youtube-dl/issues/29948 Authored by: dirkf
2021-09-06[Mediaklikk] Add Extractor (#867)coletdjnz
Original PR: https://github.com/ytdl-org/youtube-dl/pull/17453, https://github.com/ytdl-org/youtube-dl/pull/25098 Fixes: https://github.com/ytdl-org/youtube-dl/issues/21431 Authored-by: tmarki, mrx23dot, coletdjnz
2021-09-05[cleanup] Miscpukkandan
2021-09-04[SovietsCloset] Add extractor (#884)ChillingPepper
Authored by: ChillingPepper
2021-09-04Handle more playlist errors with `-i`pukkandan
2021-08-25[radiko] Add extractors (#731)The Hatsune Daishi
https://github.com/ytdl-org/youtube-dl/issues/29840 Authored by: nao20010128nao
2021-08-24[downloader/ffmpeg] Support for DASH manifests (experimental)pukkandan
Closes #159
2021-08-24[downloader/ffmpeg] Allow passing custom arguments before -ipukkandan
Closes #686
2021-08-23[extractor] Show video id in error messages if possiblepukkandan
2021-08-23[utils] Add `parse_qs`pukkandan
2021-08-17Let `--match-filter` reject entries earlypukkandan
Makes redundant: `--match-title`, `--reject-title`, `--min-views`, `--max-views`
2021-08-10[utils] Fix `InAdvancePagedList.__getitem__`pukkandan
Since it didn't have any cache, the page was re-fetched for each video. * Also generalized the cache code
2021-08-07[cleanup] Miscpukkandan
2021-08-07Fix bugs related to `sanitize_info`pukkandan
Related: https://github.com/yt-dlp/yt-dlp/commit/8012d892bd38af731357a61e071e0a0d01bc41b4#r54555230
2021-08-07[utils] Fix `traverse_obj` depth when is_user_inputpukkandan
2021-08-05Add regex to `--match-filter`pukkandan
This does not fully deprecate `--match-title`/`--reject-title` since `--match-filter` is only checked after the extraction is complete, while `--match-title` can often be checked from the flat playlist. Fixes: https://github.com/ytdl-org/youtube-dl/issues/9092, https://github.com/ytdl-org/youtube-dl/issues/23035
2021-08-05Add all format filtering operators also to `--match-filter`Max Teegen
PR: https://github.com/ytdl-org/youtube-dl/pull/27361 Authored by: max-te
2021-08-01[cleanup] Refactor some codepukkandan
2021-08-01[utils] Fix slicing of reversed `LazyList`pukkandan
Closes #589
2021-07-29Add format types `j`, `l`, `q` for outtmplpukkandan
Closes #345
2021-07-29Expand and escape environment variables correctly in outtmplpukkandan
Fixes: https://www.reddit.com/r/youtubedl/comments/otfmq3/ytdlp_same_parameters_different_results
2021-07-23[test] Add Python 3.10 (#480)xtkoba
Authored-by: pukkandan, xtkoba
2021-07-21[utils] Improve `traverse_obj`pukkandan
2021-07-20[utils] Fix LazyList for Falsey valuespukkandan
2021-07-20[compat] Remove unnecessary codepukkandan
2021-07-20[utils] Improve `traverse_obj`pukkandan
* Allow skipping a level: `traverse_obj([{k:v1}, {k:v2}], (None, k))` => `[v1, v2]` * Make keys variadic: `traverse_obj(obj, k1: str, k2: str)` => `traverse_obj(obj, (k1,), (k2,))` * Fetch from multiple keys: `traverse_obj([{k1:[1], k2:[2], k3:[3]}], (0, (k1, k2), 0))` => `[1, 2]` TODO: Add tests
2021-07-14[utils] Improve `js_to_json` comment regexfelix
Capture the newline character as part of a single-line comment From #497, Authored by: fstirlitz
2021-07-11Improve `traverse_obj`pukkandan
2021-07-11[utils] Add `variadic`pukkandan
2021-07-02Some minor fixes and refactoring (see desc)pukkandan
* [utils] Fix issues with reversal * check_formats should catch `DownloadError`, not `ExtractorError` * Simplify format selectors with `LazyList` and `yield from`
2021-06-23Add option `--throttled-rate` below which video data is re-extractedpukkandan
Currently only for HTTP downloads Closes #430, workaround for https://github.com/ytdl-org/youtube-dl/issues/29326
2021-06-17Fix id sanitization in filenamespukkandan
Closes #415
2021-06-13[downloader/mhtml] Add new downloader (#343)felix
This downloader is intended to be used for streams that consist of a timed sequence of stand-alone images, such as slideshows or thumbnail streams This can be used for implementing: https://github.com/ytdl-org/youtube-dl/issues/4974#issue-58006762 https://github.com/ytdl-org/youtube-dl/issues/4540#issuecomment-69574231 https://github.com/ytdl-org/youtube-dl/pull/11185#issuecomment-335554239 https://github.com/ytdl-org/youtube-dl/issues/9868 https://github.com/ytdl-org/youtube-dl/pull/14951 Authored by: fstirlitz
2021-06-13[utils] Improve `LazyList`pukkandan
* Add `repr` and `str` that mimics `list` * Add `reversed`. Unlike `[::-1]`, reversed does not exhaust the iterable and modifies the `LazyList` in-place * Add tests
2021-06-09Fix `%d` and empty default in outtmplpukkandan
Closes #388
2021-06-08[utils] Generalize `traverse_dict` to `traverse_obj`pukkandan
2021-06-06Fix and refactor `prepare_outtmpl`pukkandan
The following tests would have failed previously: %(id)d %(id)r %(ext)s-%(ext|def)d %(width|)d %(id)r %(height)r %(formats.0)r %s
2021-06-06[cleanup] Point all shebang to `python3` (#372)felix
Authored by: fstirlitz
2021-06-01[utils] Escape URLs in `sanitized_Request`, not `sanitize_url`pukkandan
d2558234cf5dd12d6896eed5427b7dcdb3ab7b5a added escaping of URLs while sanitizing. However, `sanitize_url` may not always receive an actual URL. Eg: When using `yt-dlp "search query" --default-search ytsearch`, `search query` gets escaped to `search%20query` before being prefixed with `ytsearch:` which is not the intended behavior. So the escaping is moved to `sanitized_Request` instead.
2021-05-29[utils] Add `__getitem__` for `PagedList`pukkandan
2021-05-29[utils] Add `LazyList`pukkandan
2021-05-24Handle Basic Auth `user:pass` in URLsHubert Hirtz
Fixes https://github.com/ytdl-org/youtube-dl/issues/20258, https://github.com/ytdl-org/youtube-dl/issues/26211 Authored by: hhirtz, pukkandan
2021-05-22[cleanup] Refactor ffmpeg convertorspukkandan