aboutsummaryrefslogtreecommitdiffstats
path: root/yt_dlp/utils.py
Commit message (Collapse)AuthorAgeFilesLines
...
* [downloader] Fix invocation of `HttpieFD`pukkandan2022-03-251-0/+8
| | | | Closes #3154
* Remove `Accept-Encoding` header from `std_headers` (#3153)coletdev2022-03-231-1/+3
| | | | | This should be set by each downloader to what it supports. Fixes https://github.com/yt-dlp/yt-dlp/issues/3142 Authored-by: coletdjnz
* Use certificates from `certifi` if installed (#3115)coletdev2022-03-221-14/+23
| | | | | Fixes #3102 and most `CERTIFICATE_VERIFY_FAILED` issues Authored by: coletdjnz
* [utils] `format_decimal_suffix`: Fix for very large numbers (#3109)s0u1h2022-03-181-2/+3
| | | Authored by: s0u1h
* [cleanup] Minor cleanuppukkandan2022-03-111-1/+1
| | | | Closes #3006
* Fix case of `http_headers`pukkandan2022-03-111-1/+1
| | | | | | Bug in 8b7539d27c0a47d8d08e0522bdb66c571483377b Fixes https://github.com/yt-dlp/yt-dlp/issues/1346#issuecomment-1064527765
* [utils] ExtractorError: Fix for older python versionspukkandan2022-03-091-1/+1
| | | | Closes #2993
* [utils] Add `get_first`pukkandan2022-03-091-0/+4
|
* [cleanup] Refactor `__init__.py` (#2570)pukkandan2022-03-081-0/+3
| | | | | * Split `__init__` code into multiple functions * Clean up validation code by grouping similar types of options * Expose `parse_options` to third parties
* [cleanup, docs] Misc cleanuppukkandan2022-03-081-2/+2
| | | | Closes #2828, closes #2734, closes #2802, closes #2937
* Add brotli content-encoding support (#2433)coletdev2022-03-081-1/+20
| | | Authored by: coletdjnz
* [utils] Better traceback for `ExtractorError`pukkandan2022-03-081-3/+4
|
* [utils] render_table: Fix character calculation for removing extra gapLesmiscore2022-03-061-1/+1
| | | | without this fix, the column next to delimiter will lack leading spaces on terminal (see https://github.com/yt-dlp/yt-dlp/pull/920#issuecomment-1059914615 for the situation)
* [ant1newsgr] Add extractor (#1982)Zenon Mousmoulas2022-03-041-0/+22
| | | Authored by: zmousm
* Implement `--add-header` without modifying `std_headers`pukkandan2022-03-041-1/+6
| | | | Closes #2526, #1614
* Handle negative duration from extractorpukkandan2022-03-041-1/+1
| | | | Closes #2921
* 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