aboutsummaryrefslogtreecommitdiffstats
path: root/yt_dlp/utils.py
Commit message (Collapse)AuthorAgeFilesLines
...
* [outtmpl] Add type `link` for internet shortcut filespukkandan2021-10-261-0/+7
| | | | | and refactor related code Closes #1405
* [utils] Sanitize URL when determining protocolpukkandan2021-10-261-1/+1
| | | | Closes #1406
* Separate `--check-all-formats` from `--check-formats`pukkandan2021-10-241-0/+2
| | | | Previously, `--check-formats` tested only the selected video formats, but ALL thumbnails
* [minicurses] Add more colorspukkandan2021-10-231-13/+20
|
* [microsoftstream] Add extractor (#1201)Damiano Amatruda2021-10-221-2/+2
| | | | | Based on: https://github.com/ytdl-org/youtube-dl/pull/24649 Fixes: https://github.com/ytdl-org/youtube-dl/issues/24440 Authored by: damianoamatruda, nixklai
* Don't create console for subprocesses on Windows (#1261)pukkandan2021-10-201-8/+20
| | | Closes #1251
* [utils] Standardize timestamp formatting codepukkandan2021-10-191-7/+23
| | | | Closes #1285
* Add HDR information to formatspukkandan2021-10-181-1/+11
|
* [utils] Use `importlib` to load plugins (#1277)Ákos Sülyi2021-10-181-9/+7
| | | Authored by: sulyi
* [utils] Allow duration strings in filterpukkandan2021-10-171-26/+20
| | | | Closes #1309
* [extractor,utils] Detect more codecs/mimetypespukkandan2021-10-131-1/+1
| | | | Fixes: https://github.com/ytdl-org/youtube-dl/issues/29943
* [minicurses] Fix when printing to filepukkandan2021-10-101-1/+1
| | | | Closes #1215
* [utils] Let traverse_obj accept functions as keyspukkandan2021-10-091-1/+15
|
* Improved progress reporting (See desc) (#1125)pukkandan2021-10-091-0/+23
| | | | | | | | | | | * Separate `--console-title` and `--no-progress` * Add option `--progress` to show progress-bar even in quiet mode * Fix and refactor `minicurses` * Use `minicurses` for all progress reporting * Standardize use of terminal sequences and enable color support for windows 10 * Add option `--progress-template` to customize progress-bar and console-title * Add postprocessor hooks and progress reporting Closes: #906, #901, #1085, #1170
* Workaround ssl errors in mingw pythonpukkandan2021-10-061-7/+14
| | | | Closes #1151
* [build] Allow building with py2exe (and misc fixes)pukkandan2021-10-041-3/+2
| | | | | py2exe config is copied from youtube-dl Closes #1160
* [extractor] Extract storyboards from SMIL manifests (#1128)Felix S2021-10-031-7/+32
| | | Authored by: fstirlitz
* [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