pukkandan
71df9b7fd5
[cleanup] Misc
2 years ago
pukkandan
64c464a144
[utils] Move `FileDownloader.parse_bytes` into utils
2 years ago
pukkandan
d5d1df8afd
[cleanup Misc
...
Closes #5162
2 years ago
pukkandan
a057779d5e
[cleanup] Minor fixes
...
Closes #5129 , Closes #4982
2 years ago
pukkandan
deae7c1711
[cleanup] Misc
2 years ago
pukkandan
da4db748fa
[utils] Add `deprecation_warning`
...
See https://github.com/yt-dlp/yt-dlp/pull/2173#issuecomment-1097021515
2 years ago
pukkandan
be5c1ae862
Standardize retry mechanism ( #1649 )
...
* [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
2 years ago
pukkandan
3df4f81dfe
[downloader] Add average speed to final progress line
...
Fixes: https://github.com/ytdl-org/youtube-dl/issues/31122
2 years ago
pukkandan
f5ea47488a
[cleanup] Minor fixes
2 years ago
pukkandan
998a3cae0c
[cleanup] Misc fixes
2 years ago
pukkandan
64fa820ccf
[cleanup] Misc fixes (see desc)
...
* [tvver] Fix bug in 6837633a4a
- 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
3 years ago
pukkandan
8a7f6d7a15
Do not print progress to `stderr` with `-q`
...
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 cf4f42cb97
Closes #3844
3 years ago
pukkandan
11233f2afd
[downloader, cleanup] Refactor `report_progress`
...
Closes #3790
3 years ago
pukkandan
c487cf0010
[cleanup] Misc
3 years ago
pukkandan
1a8cc83735
Bugfix for 3a408f9d19
3 years ago
pukkandan
2762dbb17e
[compat] Add `functools.cached_property`
3 years ago
pukkandan
666c36d58d
Bugfix for 23326151c4
3 years ago
pukkandan
23326151c4
Add option --retry-sleep ( #3059 )
...
Closes #2852
3 years ago
pukkandan
7896214c42
Bugfix for 591bb9d355
...
Closes #3769
3 years ago
pukkandan
591bb9d355
Fix color in `-q -F`
...
and convert `ydl._out_files`/`ydl._allow_colors` to `Namespace`
Closes #3761
3 years ago
pukkandan
3a408f9d19
Show name of downloader in verbose log
...
Closes #3703
3 years ago
pukkandan
1d485a1a79
[cleanup] Misc fixes
...
Closes #3565 , https://github.com/yt-dlp/yt-dlp/issues/3514#issuecomment-1105944364
3 years ago
pukkandan
43cc91ad75
bugfix for 19a0394044
, 3d3bb1688b
3 years ago
pukkandan
19a0394044
[cleanup] Misc cleanup and refactor ( #2173 )
3 years ago
pukkandan
f82711587c
[cleanup] Sort imports
...
Using https://github.com/PyCQA/isort
isort -m VERTICAL_HANGING_INDENT --py 36 -l 80 --rr -n --tc .
3 years ago
pukkandan
86e5f3ed2e
[cleanup] Upgrade syntax
...
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
3 years ago
pukkandan
0edb3e336c
Do not prevent download if locking is unsupported
...
Closes #3022
Failure to lock download-archive is still fatal.
This is consistent with youtube-dl's behavior
3 years ago
pukkandan
cf4f42cb97
Protect stdout from unexpected progress and console-title
...
Closes #3023
3 years ago
Emanuel Hoogeveen
45806d44a7
[downloader] Obey `--file-access-retries` when deleting/renaming ( #2224 )
...
Authored by: ehoogeveen-medweb
3 years ago
Emanuel Hoogeveen
205a0654c0
Add option `--file-access-retries` ( #2066 )
...
Closes #517
Authored by: ehoogeveen-medweb
3 years ago
pukkandan
b69fd25c25
[cleanup] Misc cleanup
...
Closes #1942 #1976 #2020 #2058 #1984
3 years ago
pukkandan
f304da8a29
[cleanup] Misc cleanup
...
Closes #1805 , closes #1800
3 years ago
pukkandan
7578d77d8c
[downloader] Add colors to download progress
3 years ago
pukkandan
a4211baff5
[cleanup] Minor cleanup
3 years ago
pukkandan
bd93fd5d45
[fragment] Fix progress display in fragmented downloads
...
Closes #1517
3 years ago
pukkandan
aa7785f860
[utils] Standardize timestamp formatting code
...
Closes #1285
3 years ago
pukkandan
580d3274e5
[youtube] Expose different formats with same itag
3 years ago
pukkandan
03b4de722a
[downloader] Fix slow progress hooks
...
Closes #1301
3 years ago
pukkandan
d1d5c08f29
[minicurses] Fix when printing to file
...
Closes #1215
3 years ago
pukkandan
819e05319b
Improved progress reporting (See desc) ( #1125 )
...
* 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
3 years ago
pukkandan
be867b03f5
bugfix for bd50a52b0d
3 years ago
The Hatsune Daishi
bd50a52b0d
Basic framework for simultaneous download of multiple formats ( #1036 )
...
Authored by: nao20010128nao
3 years ago
Paul Wrubel
d75201a873
Use `os.replace` where applicable ( #793 )
...
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
3 years ago
pukkandan
f775c83110
Fix `--force-overwrites` when using `-k`
...
For formats that need merge, the `.fxxx` files are not removed before
downloading the corresponding `.part` files. This causes the rename to fail
3 years ago
pukkandan
3448870205
[docs] Fix some mistakes and improve doc
3 years ago
pukkandan
b868936cd6
[cleanup] Misc
3 years ago
pukkandan
9cc1a3130a
Fix resuming when using `--no-part`
...
Closes #576
3 years ago
pukkandan
f45e6c1126
[downloader] Pass same status object to all `progress_hooks`
3 years ago
pukkandan
3ba7740dd8
[downloader] Pass `info_dict` to `progress_hook`s
3 years ago
pukkandan
8a77e5e6bc
[cleanup] Revert unnecessary changes in 51d9739f80
3 years ago