Commit Graph

27 Commits (90c1f5120694105496a6ad9e3ecfc6c25de6cae1)

Author SHA1 Message Date
Felix Yan 65e5c021e7
[utils] Don't use Content-length with encoding ()
Authored by: felixonmars
Closes , 
pukkandan be5c1ae862
Standardize retry mechanism ()
* [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
pukkandan 6d645b5577
[http] Ensure the file handle is always closed
Closes 
pukkandan 54007a45f1
[cleanup] Consistent style for file heads
pukkandan ac66811112
[compat] Remove more functions
Removing any more will require changes to a large number of extractors
pukkandan c487cf0010
[cleanup] Misc
coletdjnz 5faf6528fb
[http] Fix bug in retrying on read timeout in py < 3.10
socket.timeout is not an alias of TimeoutError in py < 3.10
Fixes bug in a2e77303e3
Authored-by: coletdjnz
pukkandan 0f06bcd759
[cleanup] Minor fixes (See desc)
* [youtube] Fix `--youtube-skip-dash-manifest`
* [build] Use `$()` in `Makefile`. Closes 
* Fix bug in 385ffb467b
* Fix bug in 43d7f5a5d0
* [cleanup] Remove unnecessary `utf-8` from `str.encode`/`bytes.decode`
* [utils] LazyList: Expose unnecessarily "protected" attributes
and other minor cleanup
pukkandan f82711587c
[cleanup] Sort imports
Using https://github.com/PyCQA/isort

    isort -m VERTICAL_HANGING_INDENT --py 36 -l 80 --rr -n --tc .
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
pukkandan ce0593ef61
[http] Fix
pukkandan a44ca5a470
[cleanup] Misc fixes
Closes https://github.com/yt-dlp/yt-dlp/pull/3213, Closes https://github.com/yt-dlp/yt-dlp/pull/3117

Related: https://github.com/yt-dlp/yt-dlp/issues/3146#issuecomment-1077323114, https://github.com/yt-dlp/yt-dlp/pull/3277#discussion_r841019671, a825ffbffa (commitcomment-68538986), https://github.com/yt-dlp/yt-dlp/issues/2360, 5fa3c9a88f (r70393519), 5fa3c9a88f (r70393254)
pukkandan c4f60dd7cd
[utils] Add `try_call`
Lesmiscore (Naoya Ozaki) be4685ab7b
[http] Reject broken range before request ()
* And fix filesize estimate for byterange downloads

Closes 
Authored by: Lesmiscore, Jules-A, pukkandan
coletdev a2e77303e3
[downloader/http] Retry on more errors ()
Closes , 
Related: , 
Authored-by: coletdjnz
Lesmiscore (Naoya Ozaki) 93c8410d33
[downloader/fragment] Fix bugs around resuming with Range ()
Authored by: Lesmiscore
Emanuel Hoogeveen 205a0654c0
Add option `--file-access-retries` ()
Closes 
Authored by: ehoogeveen-medweb
pukkandan 9fab498fbf
[http] Retry on socket timeout
Closes 
pukkandan d5a39f0bad
[http] Show the last encountered error
Closes 
pukkandan 21186af70a
[downloader] Fix throttledratelimit
The timer should not reset at start of each block
pukkandan b5ae35ee6d
[cleanup] Misc cleanup
pukkandan b922db9fe5
[http] Respect user-provided chunk size over extractor's
The Hatsune Daishi bd50a52b0d
Basic framework for simultaneous download of multiple formats ()
Authored by: nao20010128nao
Felix S 0715f7e19b
Revert erroneous use of the `Content-Length` header ()
This reverts commit 6c907eb33f

The use of the Content-Length value here is erroneous and may lead
to truncated downloads if a compression scheme is specified in the
Content-Encoding header, as the Content-Length header refers to the
size of encoded data, not of the raw bytestream. This has been noticed
in the wild with WebVTT subtitle segments.

Authored by: fstirlitz
pukkandan 3ba7740dd8
[downloader] Pass `info_dict` to `progress_hook`s
pukkandan 51d9739f80
Add option `--throttled-rate` below which video data is re-extracted
Currently only for HTTP downloads

Closes , workaround for https://github.com/ytdl-org/youtube-dl/issues/29326
Pccode66 7a5c1cfe93
Completely change project name to yt-dlp ()
* All modules and binary names are changed
* All documentation references changed
* yt-dlp no longer loads youtube-dlc config files
* All URLs changed to point to organization account

Co-authored-by: Pccode66
Co-authored-by: pukkandan