aboutsummaryrefslogtreecommitdiffstats
path: root/yt_dlp/downloader/common.py
Commit message (Collapse)AuthorAgeFilesLines
* [cleanup Miscpukkandan2022-10-181-5/+5
| | | | Closes #5162
* [cleanup] Minor fixespukkandan2022-10-041-8/+11
| | | | Closes #5129, Closes #4982
* [cleanup] Miscpukkandan2022-09-101-1/+1
|
* [utils] Add `deprecation_warning`pukkandan2022-08-301-0/+1
| | | | See https://github.com/yt-dlp/yt-dlp/pull/2173#issuecomment-1097021515
* Standardize retry mechanism (#1649)pukkandan2022-08-021-37/+31
| | | | | | | * [utils] Create `RetryManager` * Migrate all retries to use the manager * [extractor] Add wrapper methods for convenience * Standardize console messages for retries * Add `--retry-sleep` for extractors
* [downloader] Add average speed to final progress linepukkandan2022-07-311-0/+4
| | | | Fixes: https://github.com/ytdl-org/youtube-dl/issues/31122
* [cleanup] Minor fixespukkandan2022-07-111-2/+1
|
* [cleanup] Misc fixespukkandan2022-06-221-1/+1
|
* [cleanup] Misc fixes (see desc)pukkandan2022-06-121-1/+1
| | | | | | | | | | | | | | * [tvver] Fix bug in 6837633a4a614920b6e43ffc6b4b8590dca8c9d7 - Closes #4054 * [rumble] Fix tests - Closes #3976 * [make] Remove `cat` abuse - Closes #3989 * [make] Revert #3684 - Closes #3814 * [utils] Improve `get_elements_by_class` - Closes #3993 * [utils] Inherit `Namespace` from `types.SimpleNamespace` * [utils] Use `re.fullmatch` for matching filters * [jsinterp] Handle quotes in `_separate` * [make_readme] Allow overshooting last line Authored by: pukkandan, kwconder, MrRawes, Lesmiscore
* Do not print progress to `stderr` with `-q`pukkandan2022-06-011-2/+2
| | | | | | | | It is arguable how this "should" behave, but since progress is always written to stdout in older yt-dl/p, we should keep it as-is Bug in cf4f42cb9776eaa3166d2d234c3ec7651f05d7a9 Closes #3844
* [downloader, cleanup] Refactor `report_progress`pukkandan2022-05-221-65/+48
| | | | Closes #3790
* [cleanup] Miscpukkandan2022-05-211-0/+1
|
* Bugfix for 3a408f9d199127ca2626359e21a866a09ab236b3pukkandan2022-05-201-4/+4
|
* [compat] Add `functools.cached_property`pukkandan2022-05-201-1/+2
|
* Bugfix for 23326151c45b632c3d5948bd018e80abb370e676pukkandan2022-05-201-3/+3
|
* Add option --retry-sleep (#3059)pukkandan2022-05-191-2/+16
| | | | Closes #2852
* Bugfix for 591bb9d3553a4d7b453777c1e28e0948741e3b50pukkandan2022-05-171-1/+1
| | | | Closes #3769
* Fix color in `-q -F`pukkandan2022-05-171-3/+3
| | | | | | and convert `ydl._out_files`/`ydl._allow_colors` to `Namespace` Closes #3761
* Show name of downloader in verbose logpukkandan2022-05-111-0/+4
| | | | Closes #3703
* [cleanup] Misc fixespukkandan2022-04-291-2/+4
| | | | Closes #3565, https://github.com/yt-dlp/yt-dlp/issues/3514#issuecomment-1105944364
* bugfix for 19a0394044bfad36cd665450271b8eb048a41c02, ↵pukkandan2022-04-181-1/+1
| | | | 3d3bb1688bfc5373105e6bf7c3d4729cf3f78788
* [cleanup] Misc cleanup and refactor (#2173)pukkandan2022-04-181-57/+41
|
* [cleanup] Sort importspukkandan2022-04-121-9/+9
| | | | | | Using https://github.com/PyCQA/isort isort -m VERTICAL_HANGING_INDENT --py 36 -l 80 --rr -n --tc .
* [cleanup] Upgrade syntaxpukkandan2022-04-121-5/+3
| | | | | | | | | | Using https://github.com/asottile/pyupgrade 1. `__future__` imports and `coding: utf-8` were removed 2. Files were rewritten with `pyupgrade --py36-plus --keep-percent-format` 3. f-strings were cherry-picked from `pyupgrade --py36-plus` Extractors are left untouched (except removing header) to avoid unnecessary merge conflicts
* Do not prevent download if locking is unsupportedpukkandan2022-04-051-1/+5
| | | | | | | Closes #3022 Failure to lock download-archive is still fatal. This is consistent with youtube-dl's behavior
* Protect stdout from unexpected progress and console-titlepukkandan2022-03-111-3/+3
| | | | Closes #3023
* [downloader] Obey `--file-access-retries` when deleting/renaming (#2224)Emanuel Hoogeveen2022-03-031-17/+30
| | | Authored by: ehoogeveen-medweb
* Add option `--file-access-retries` (#2066)Emanuel Hoogeveen2021-12-231-0/+18
| | | | Closes #517 Authored by: ehoogeveen-medweb
* [cleanup] Misc cleanuppukkandan2021-12-231-0/+1
| | | | Closes #1942 #1976 #2020 #2058 #1984
* [cleanup] Misc cleanuppukkandan2021-11-291-3/+5
| | | | Closes #1805, closes #1800
* [downloader] Add colors to download progresspukkandan2021-11-291-4/+24
|
* [cleanup] Minor cleanuppukkandan2021-11-041-1/+3
|
* [fragment] Fix progress display in fragmented downloadspukkandan2021-11-031-0/+2
| | | | Closes #1517
* [utils] Standardize timestamp formatting codepukkandan2021-10-191-7/+6
| | | | Closes #1285
* [youtube] Expose different formats with same itagpukkandan2021-10-161-1/+0
|
* [downloader] Fix slow progress hookspukkandan2021-10-161-4/+1
| | | | Closes #1301
* [minicurses] Fix when printing to filepukkandan2021-10-101-3/+2
| | | | Closes #1215
* Improved progress reporting (See desc) (#1125)pukkandan2021-10-091-47/+39
| | | | | | | | | | | * 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
* bugfix for bd50a52b0d7247cdbf205eb851ce33ae4b89c516pukkandan2021-09-241-3/+2
|
* Basic framework for simultaneous download of multiple formats (#1036)The Hatsune Daishi2021-09-221-5/+28
| | | Authored by: nao20010128nao
* Use `os.replace` where applicable (#793)Paul Wrubel2021-08-271-5/+2
| | | | | | | | | | When using ```py os.remove(encodeFilename(filename)) os.rename(encodeFilename(temp_filename), encodeFilename(filename)) ``` the `os.remove` need not be atomic and so can be executed arbitrarily compared to the immediately following rename call. It is better to use `os.replace` instead Authored by: paulwrubel
* Fix `--force-overwrites` when using `-k`pukkandan2021-08-151-2/+5
| | | | | For formats that need merge, the `.fxxx` files are not removed before downloading the corresponding `.part` files. This causes the rename to fail
* [docs] Fix some mistakes and improve docpukkandan2021-08-071-2/+5
|
* [cleanup] Miscpukkandan2021-08-071-5/+2
|
* Fix resuming when using `--no-part`pukkandan2021-08-061-1/+1
| | | | Closes #576
* [downloader] Pass same status object to all `progress_hooks`pukkandan2021-07-231-1/+5
|
* [downloader] Pass `info_dict` to `progress_hook`spukkandan2021-07-221-3/+9
|
* [cleanup] Revert unnecessary changes in 51d9739f8031fb37d8e25b0e9f1abea561e3d2e3pukkandan2021-06-231-3/+2
|
* Add option `--throttled-rate` below which video data is re-extractedpukkandan2021-06-231-2/+4
| | | | | | Currently only for HTTP downloads Closes #430, workaround for https://github.com/ytdl-org/youtube-dl/issues/29326
* [downloader] Fix `write_debug`pukkandan2021-05-191-0/+3
|