sepro
f95a92b3d0
[cleanup] Deprecate more compat functions ( #11439 )
...
Authored by: seproDev
1 month ago
sepro
add96eb9f8
[cleanup] Add more ruff rules ( #10149 )
...
Authored by: seproDev
Reviewed-by: bashonly <88596187+bashonly@users.noreply.github.com>
Reviewed-by: Simon Sawicki <contact@grub4k.xyz>
7 months ago
Simon Sawicki
9590cc6b47
Add new option `--progress-delta` ( #9082 )
...
Authored by: Grub4K
9 months ago
bashonly
6c5211cebe
[core] Fix HTTP headers and cookie handling
...
- Remove `Cookie` header from `http_headers` immediately after loading into cookiejar
- Restore compat for `--load-info-json` cookies
- Add more tests
- Fix improper passing of Cookie header by `MailRu` extractor
Closes #7558
Authored by: bashonly, pukkandan
1 year ago
Simon Sawicki
3121512228
[core] Change how `Cookie` headers are handled
...
Cookies are now saved and loaded under `cookies` key in the info dict
instead of `http_headers.Cookie`. Cookies passed in headers are
auto-scoped to the input URLs with a warning.
Ref: https://github.com/yt-dlp/yt-dlp/security/advisories/GHSA-v8mc-9377-rwjj
Authored by: Grub4K
2 years ago
pukkandan
337734d4a8
[cleanup] Misc
2 years ago
pukkandan
ad54c9130e
[cleanup] Misc
...
Closes #6288 , Closes #7197 , Closes #7265 , Closes #7353 , Closes #5773
Authored by: mikf, freezboltz, pukkandan
2 years ago
Simon Sawicki
8417f26b8a
[core] Implement `--color` flag ( #6904 )
...
Authored by: Grub4K
2 years ago
pukkandan
4823ec9f46
Update to ytdl-commit-d1c6c5
...
[YouTube] [core] Improve platform debug log, based on yt-dlp
d1c6c5c4d6
Except:
* 6ed34338285f722d0da312ce0af3a15a077a3e2a [jsinterp] Add short-cut evaluation for common expression
* There was no performance improvement when tested with https://github.com/ytdl-org/youtube-dl/issues/30641
* e8de54bce50f6f77a4d7e8e80675f7003d5bf630 [core] Handle `/../` sequences in HTTP URLs
* We plan to implement this differently
2 years ago
pukkandan
46f1370e9a
[devscripts/cli_to_api] Add script
2 years ago
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
3 years ago
pukkandan
998a3cae0c
[cleanup] Misc fixes
3 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