aboutsummaryrefslogtreecommitdiffstats
path: root/yt_dlp/utils.py
Commit message (Collapse)AuthorAgeFilesLines
...
* [postprocessor] Add plugin supportpukkandan2021-09-301-3/+2
| | | | Adds option `--use-postprocessor` to enable them
* Workaround for bug in `ssl.SSLContext.load_default_certs` (#1118)pukkandan2021-09-291-19/+25
| | | | | | | | * 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
* [outtmpl] Alternate form of format type `l` for `\n` delimited listpukkandan2021-09-271-1/+3
|
* [outtmpl] Format type `U` for unicode normalizationpukkandan2021-09-261-5/+5
|
* [atv.at] Use jwt for API (#1012)NeroBurner2021-09-231-6/+27
| | | | | | The jwt token is implemented according to RFC7519 Closes #988 Authored by: NeroBurner
* Basic framework for simultaneous download of multiple formats (#1036)The Hatsune Daishi2021-09-221-0/+8
| | | Authored by: nao20010128nao
* [CGTN] Add extractor (#981)Yuan Chao2021-09-191-0/+1
| | | Authored by: chao813
* [utils] Improve `extract_timezone`pukkandan2021-09-191-2/+10
| | | | | | 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
* [Mediaklikk] Add Extractor (#867)coletdjnz2021-09-061-0/+1
| | | | | 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
* [cleanup] Miscpukkandan2021-09-051-2/+2
|
* [SovietsCloset] Add extractor (#884)ChillingPepper2021-09-041-1/+3
| | | Authored by: ChillingPepper
* Handle more playlist errors with `-i`pukkandan2021-09-041-5/+14
|
* [radiko] Add extractors (#731)The Hatsune Daishi2021-08-251-0/+2
| | | | https://github.com/ytdl-org/youtube-dl/issues/29840 Authored by: nao20010128nao
* [downloader/ffmpeg] Support for DASH manifests (experimental)pukkandan2021-08-241-0/+1
| | | | Closes #159
* [downloader/ffmpeg] Allow passing custom arguments before -ipukkandan2021-08-241-0/+12
| | | | Closes #686
* [extractor] Show video id in error messages if possiblepukkandan2021-08-231-10/+12
|
* [utils] Add `parse_qs`pukkandan2021-08-231-0/+4
|
* Let `--match-filter` reject entries earlypukkandan2021-08-171-8/+11
| | | | Makes redundant: `--match-title`, `--reject-title`, `--min-views`, `--max-views`
* [utils] Fix `InAdvancePagedList.__getitem__`pukkandan2021-08-101-34/+29
| | | | | Since it didn't have any cache, the page was re-fetched for each video. * Also generalized the cache code
* [cleanup] Miscpukkandan2021-08-071-2/+5
|
* Fix bugs related to `sanitize_info`pukkandan2021-08-071-1/+1
| | | | Related: https://github.com/yt-dlp/yt-dlp/commit/8012d892bd38af731357a61e071e0a0d01bc41b4#r54555230
* [utils] Fix `traverse_obj` depth when is_user_inputpukkandan2021-08-071-2/+4
|
* Add regex to `--match-filter`pukkandan2021-08-051-11/+16
| | | | | | | | 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
* Add all format filtering operators also to `--match-filter`Max Teegen2021-08-051-6/+13
| | | | | | PR: https://github.com/ytdl-org/youtube-dl/pull/27361 Authored by: max-te
* [cleanup] Refactor some codepukkandan2021-08-011-2/+2
|
* [utils] Fix slicing of reversed `LazyList`pukkandan2021-08-011-9/+8
| | | | Closes #589
* Add format types `j`, `l`, `q` for outtmplpukkandan2021-07-291-0/+2
| | | | Closes #345
* Expand and escape environment variables correctly in outtmplpukkandan2021-07-291-3/+4
| | | | Fixes: https://www.reddit.com/r/youtubedl/comments/otfmq3/ytdlp_same_parameters_different_results
* [test] Add Python 3.10 (#480)xtkoba2021-07-231-2/+2
| | | Authored-by: pukkandan, xtkoba
* [utils] Improve `traverse_obj`pukkandan2021-07-211-6/+15
|
* [utils] Fix LazyList for Falsey valuespukkandan2021-07-201-2/+2
|
* [compat] Remove unnecessary codepukkandan2021-07-201-1/+1
|
* [utils] Improve `traverse_obj`pukkandan2021-07-201-10/+38
| | | | | | | | * 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
* [utils] Improve `js_to_json` comment regexfelix2021-07-141-1/+1
| | | | | | Capture the newline character as part of a single-line comment From #497, Authored by: fstirlitz
* Improve `traverse_obj`pukkandan2021-07-111-22/+34
|
* [utils] Add `variadic`pukkandan2021-07-111-6/+6
|
* Some minor fixes and refactoring (see desc)pukkandan2021-07-021-8/+11
| | | | | | * [utils] Fix issues with reversal * check_formats should catch `DownloadError`, not `ExtractorError` * Simplify format selectors with `LazyList` and `yield from`
* Add option `--throttled-rate` below which video data is re-extractedpukkandan2021-06-231-0/+5
| | | | | | Currently only for HTTP downloads Closes #430, workaround for https://github.com/ytdl-org/youtube-dl/issues/29326
* Fix id sanitization in filenamespukkandan2021-06-171-0/+2
| | | | Closes #415
* [downloader/mhtml] Add new downloader (#343)felix2021-06-131-4/+16
| | | | | | | | | | | | | | | | | | 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
* [utils] Improve `LazyList`pukkandan2021-06-131-9/+34
| | | | | | * 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
* Fix `%d` and empty default in outtmplpukkandan2021-06-091-0/+2
| | | | Closes #388
* [utils] Generalize `traverse_dict` to `traverse_obj`pukkandan2021-06-081-12/+29
|
* Fix and refactor `prepare_outtmpl`pukkandan2021-06-061-7/+9
| | | | | | | | | | 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
* [cleanup] Point all shebang to `python3` (#372)felix2021-06-061-1/+1
| | | | Authored by: fstirlitz
* [utils] Escape URLs in `sanitized_Request`, not `sanitize_url`pukkandan2021-06-011-2/+2
| | | | | 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.
* [utils] Add `__getitem__` for `PagedList`pukkandan2021-05-291-0/+9
|
* [utils] Add `LazyList`pukkandan2021-05-291-0/+50
|
* Handle Basic Auth `user:pass` in URLsHubert Hirtz2021-05-241-1/+17
| | | | | Fixes https://github.com/ytdl-org/youtube-dl/issues/20258, https://github.com/ytdl-org/youtube-dl/issues/26211 Authored by: hhirtz, pukkandan
* [cleanup] Refactor ffmpeg convertorspukkandan2021-05-221-2/+0
|