aboutsummaryrefslogtreecommitdiffstats
path: root/yt_dlp/utils.py
Commit message (Collapse)AuthorAgeFilesLines
...
* Fix doubling of `video_id` in `ExtractorError`pukkandan2022-03-041-2/+2
|
* [utils] Improve file lockingpukkandan2022-03-031-8/+12
| | | | | * Implement non-blocking locks for windows * Don't raise error when closing a closed file
* [utils] Fix file locking for AOSP (#2714)Justin Keogh2022-03-031-6/+16
| | | | | Closes #2080, #2670 Authored by: jakeogh
* [utils] OnDemandPagedList: Do not download pages after errorpukkandan2022-03-031-4/+9
|
* [downloader/fragment] Fix bugs around resuming with Range (#2901)Lesmiscore (Naoya Ozaki)2022-02-281-0/+10
| | | Authored by: Lesmiscore
* [fc2:live] Add extractor (#2418)Lesmiscore (Naoya Ozaki)2022-02-251-1/+3
| | | Authored by: Lesmiscore
* [AbemaTV] Add extractors (#1688)Lesmiscore (Naoya Ozaki)2022-02-251-0/+23
| | | Authored by: Lesmiscore
* Add pre-processor stage `after_filter`pukkandan2022-02-231-1/+1
| | | | | | | * Move `_match_entry` and `post_extract` to `process_video_result`. It is also left in `process_info` for API compat * `--list-...` options and `--force-write-archive` now obey filtering options * Move `SponsorBlockPP` to `after_filter`. Closes https://github.com/yt-dlp/yt-dlp/issues/2536 * Reverts 4ec82a72bbf7ff0066edb50dcad20aa77ac2fe09 since this commit addresses the issue it was solving
* [tubitv] Fix/improve TV series extraction (#2829)Bepis2022-02-191-0/+2
| | | Authored by: bbepis
* [utils] WebSockets wrapper for non-async functions (#2417)Lesmiscore (Naoya Ozaki)2022-02-131-0/+69
| | | Authored by: Lesmiscore
* [utils] Validate `DateRange` inputpukkandan2022-02-121-5/+9
| | | | Closes #2641
* [utils] Use `locked_file` for `sanitize_open` (#1066)Justin Keogh2022-02-051-10/+24
| | | Authored by: jakeogh
* [cleanup,docs] Minor fixespukkandan2022-02-031-7/+3
| | | | Closes #2541, #2484
* [utils] Strip double spaces in `clean_html`pukkandan2022-02-031-4/+3
| | | | | Closes #2497 Authored by: dirkf
* Make nested --config-locations relative to parent filepukkandan2022-02-031-1/+3
| | | | | * and allow environment variables in it so that you can use `$PWD`/`%cd%` to specify paths relative to current directory
* Fix `--compat-options list-formats`pukkandan2022-02-021-5/+4
| | | | Closes #2481
* Fix/improve `InAdvancePagedList`pukkandan2022-01-241-2/+1
|
* [cleanup] Use format_field where applicablepukkandan2022-01-211-7/+4
|
* Add option --legacy-server-connect (#778)xtkoba2022-01-211-0/+2
| | | | | to allow HTTPS connection to servers that do not support RFC 5746 secure renegotiation Authored by: xtkoba
* Fix d14cbdd92d8bbb9deedc77da80085b0280ae52bbpukkandan2022-01-211-1/+1
|
* [youtube] Enforce UTC (#2402)coletdjnz2022-01-201-1/+1
| | | | | | and [utils] use `utcnow` in `datetime_from_str` Related: #2223 Authored by: coletdjnz
* [utils] Add `Sec-Fetch-Mode` to `std_headers`pukkandan2022-01-201-0/+1
| | | | Closes #2187
* Revert d6579d532bed8fa9e316404e6f30df4402f4a632pukkandan2022-01-201-1576/+38
| | | | Closes #2396, Reopens #2187
* [utils] Handle `ss:xxx` in `parse_duration`pukkandan2022-01-191-3/+8
| | | | Closes #2388
* Add option `--concat-playlist`pukkandan2022-01-131-0/+1
| | | | Closes #1855, related: #382
* [utils] Partially revert d76d15a6699dc41eea26a96d054a1b7bcb12c69bpukkandan2022-01-101-38/+1576
| | | | Closes #2187
* [utils] Improve `get_elements_text_and_html_by_attribute` regex (#2280)Zenon Mousmoulas2022-01-091-13/+12
| | | Authored by: zmousm, pukkandan
* [utils] Improve parsing for nested HTML elements (#2129)Zenon Mousmoulas2022-01-061-13/+124
| | | | | and add functions to return the HTML of elements Authored by: zmousm
* [cleanup] Misc cleanuppukkandan2022-01-041-8/+2
|
* Allow multiple and nested configuration filespukkandan2022-01-041-0/+88
|
* Add more post-processing stagespukkandan2022-01-031-1/+1
| | | | | playlist = After entire playlist after_video = After downloading all formats of a video
* Allow `--exec` to be run at any post-processing stagepukkandan2022-01-031-0/+3
| | | | Deprecates `--exec-before-download`
* [utils] Use key `None` in `traverse_obj` to return as-ispukkandan2022-01-021-3/+4
|
* [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