-
-
Notifications
You must be signed in to change notification settings - Fork 9.7k
Remove continue from aria2c #11698
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Remove continue from aria2c #11698
Conversation
This doesn't actually work, or make sense, without configuring the stream selector to use `inorder` instead of `default` for the algorithm. Ideally, `aria2c` would write the needed information for resuming downloads in its own file before exiting. Otherwise, it's more reliable to download everything again.
Moved renaming and overwrite arguments up with the rest. Both cases need these arguments. Save the control file every 10 seconds. Resume using the control file, or overwrite if not possible. Remove the control file when the download is completed. Print to stderr instead, just as curl does.
--remove-control-file[=true|false] Remove control file before download. Using with --allow-overwrite=true, download always starts from scratch.
- Resume or overwrite the specified file - Do not rename output to a non-existent file - Do not abort the transfer when resume fails - Do not preserve the control file after transfers complete
But why is the default insufficient?
The default is false, no? We can enforce this for
This is also default, no? Could you explain why user shouldn't be able to change this? |
The setting means there is no way to resume unless:
The value of '0' removes option 2.
Based on a skim through the source, this default is unclear to me and it's not documented.
There is all manner of bad advice about this flag on the Internet. It's intended purpose is to keep the control file around after a BitTorrent transfer because the seeding statistics are stored in that file. Allowing this to be set to |
Description of your pull request and other information
Since aria2c was added the
-c
flag has been used.This doesn't actually work, or make sense, without configuring the stream selector to use
inorder
instead ofdefault
for the algorithm.Ideally,
aria2c
would write the needed information for resuming downloads in its own file before exiting. Otherwise, it's more reliable to download everything again.Change the arguments to have
aria2c
try to resume, then overwrite a partial file if it can't resume, instead of aborting the download.Arguments:
--auto-save-interval=10
: save the control file for the transfer to disk faster than the default.Users can change this as they like without impacting the success of the transfer.
--remove-control-file
: for resume to work, this must befalse
becausetrue
removes the control file before attempting to resume the transfer.Users can change this, but it's required to be
false
forcontinuedl
to work as expected.--allow-overwrite=true
: Without this the transfer is aborted instead of overwriting the file.Users should not change this.
--always-resume=false
: Without this transfers that cannot be resumed are aborted.Users should not change this.
--auto-file-renaming=false
: Without this the output file is changed to a filename that doesn't already exist.Users should not change this.
--force-save=false
: The control file should be removed (not saved) after the transfer is completed.Users should not change this.
Template
Before submitting a pull request make sure you have:
In order to be accepted and merged into yt-dlp each piece of code must be in public domain or released under Unlicense. Check all of the following options that apply:
What is the purpose of your pull request?