aboutsummaryrefslogtreecommitdiffstats
path: root/yt_dlp/utils.py
Commit message (Collapse)AuthorAgeFilesLines
* [extractor] Detect more subtitle codecs in MPD manifests (#2174)Felix S2022-01-011-2/+6
| | | Authored by: fstirlitz
* [outtmpl] Alternate form for `D` and fix suffix's casepukkandan2021-12-301-2/+4
| | | | Fixes: https://github.com/yt-dlp/yt-dlp/issues/2085#issuecomment-1002247689, https://github.com/yt-dlp/yt-dlp/pull/2132/files#r775729811
* Allow unicode characters in `info.json`pukkandan2021-12-281-1/+1
| | | | Closes #2139
* [utils] Fix `format_bytes` output for Bytes (#2132)Pierre Mdawar2021-12-281-2/+2
| | | | Authored by: pukkandan, mdawar
* [utils] Improve `parse_count`pukkandan2021-12-251-2/+10
|
* [OpenCast] Add extractors (#1905)Benedikt Wildenhain2021-12-251-1/+1
| | | | Original PR: https://github.com/ytdl-org/youtube-dl/pull/26934 Authored by: bwildenhain, C0D3D3V
* [utils] Fix parsing `YYYYMMDD` dates in Nov/Dec (#2094)Luc Ritchie2021-12-241-0/+1
| | | | | | | | | | | | The date format `%Y%m%d%H%M` will successfully match against one-digit month, day, hour, and minute strings, even though %m et al. are documented as being zero-padded. So dates without time in Nov/Dec may be wrongly parsed as dates in January with time. This commit adds a format string of `%Y%m%d` to our supported date format strings directly below (higher priority) its problematic relatives. Closes #2076 Authored by: wlritchi
* [cleanup] Misc cleanuppukkandan2021-12-231-10/+8
| | | | Closes #1942 #1976 #2020 #2058 #1984
* [outtmpl] Add alternate forms `F`, `D`pukkandan2021-12-231-11/+12
| | | | | | | | | and improve `id` detection F = sanitize as filename (# = restricted) D = add Decimal suffixes Closes #2085, 2081
* [dash,youtube] Download live from start to end (#888)The Hatsune Daishi2021-12-201-6/+0
| | | | | | | | | | | | | | | * Add option `--live-from-start` to enable downloading live videos from start * Add key `is_from_start` in formats to identify formats (of live videos) that downloads from start * [dash] Create protocol `http_dash_segments_generator` that allows a function to be passed instead of fragments * [fragment] Allow multiple live dash formats to download simultaneously * [youtube] Implement fragment re-fetching for the live dash formats * [youtube] Re-extract dash manifest every 5 hours (manifest expires in 6hrs) * [postprocessor/ffmpeg] Add `FFmpegFixupDuplicateMoovPP` to fixup duplicated moov atoms Known issue: Ctrl+C doesn't work on Windows when downloading multiple formats Closes #1521 Authored by: nao20010128nao, pukkandan
* [utils] Update `std_headers` (#2023)Felix S2021-12-181-1577/+38
| | | | | | * Update our chrome versions used for `User-Agent`s * Drop the `Accept-Charset` header that no browser emits any more Authored by: kikuyan, fstirlitz
* [skeb] Add extractor (#1916)The Hatsune Daishi2021-12-091-0/+9
| | | | Fixes: https://github.com/ytdl-org/youtube-dl/issues/30287 Authored by: nao20010128nao
* [compat] Suppress errors in enabling VT modepukkandan2021-12-081-1/+2
| | | | Closes #1932
* Use `parse_duration` for `--wait-for-video`pukkandan2021-12-061-1/+2
| | | | and some minor fix
* Fix `--throttled-rate`pukkandan2021-12-031-2/+2
|
* [cleanup] Add deprecation warningspukkandan2021-11-291-3/+4
|
* [cleanup] Misc cleanuppukkandan2021-11-291-4/+0
| | | | Closes #1805, closes #1800
* Option `--wait-for-video` to wait for scheduled streamspukkandan2021-11-291-1/+12
|
* [utils] Fix error when copying `LazyList`pukkandan2021-11-201-6/+14
|
* [utils] Fix `PagedList`pukkandan2021-11-201-1/+5
| | | | Bug in d8cf8d97a8dbc9602556de474af133b5ab0e0a29
* [utils] Allow alignment in `render_table`pukkandan2021-11-201-9/+13
| | | | and add tests
* [utils] Fix `PagedList`pukkandan2021-11-161-2/+6
|
* [cleanup] minor fixespukkandan2021-11-101-1/+1
|
* [cleanup] Minor improvements to error and debug messagespukkandan2021-11-101-10/+22
|
* [outtmpl] Do not traverse `None`pukkandan2021-11-081-2/+2
| | | | Closes #1585
* [utils] Add `join_nonempty`pukkandan2021-11-061-0/+6
|
* [RaiplayRadio] Add extractors (#780)Francesco Frassinelli2021-11-051-0/+26
| | | | Original PR: https://github.com/ytdl-org/youtube-dl/pull/21837 Authored by: frafra
* [ffmpeg] Framework for feature detectionpukkandan2021-11-041-5/+10
| | | | Related: #1502, #1237, https://github.com/ytdl-org/youtube-dl/pull/29581
* [ExtractAudio] Rescale --audio-quality correctlypukkandan2021-11-041-1/+1
| | | | Authored by: CrypticSignal, pukkandan
* [utils] Parse `vp09` as vp9pukkandan2021-11-031-9/+8
|
* [utils] Add `jwt_decode_hs256`pukkandan2021-10-281-0/+7
| | | | | Code from #1340 Authored by: Ashish0804
* [extractor] Fix some errors being converted to `ExtractorError`pukkandan2021-10-261-3/+3
|
* [utils] Create `DownloadCancelled` exceptionpukkandan2021-10-261-10/+20
| | | | | | as super-class of ExistingVideoReached, RejectedVideoReached, MaxDownloadsReached Third parties can also sub-class this to cancel the download queue from a hook
* [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