Skip to content
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

Request: Option to limit total maximum downloaded content #20730

Closed
polski-g opened this issue Apr 20, 2019 · 2 comments
Closed

Request: Option to limit total maximum downloaded content #20730

polski-g opened this issue Apr 20, 2019 · 2 comments
Labels

Comments

@polski-g
Copy link

@polski-g polski-g commented Apr 20, 2019

Make sure you are using the latest version: run youtube-dl --version and ensure your version is 2019.04.17. If it's not, read this FAQ entry and update. Issues with outdated version will be rejected.

  • I've verified and I assure that I'm running youtube-dl 2019.04.17

Before submitting an issue make sure you have:

  • At least skimmed through the README, most notably the FAQ and BUGS sections
  • Searched the bugtracker for similar issues including closed ones
  • Checked that provided video/audio/playlist URLs (if any) are alive and playable in a browser

What is the purpose of your issue?

  • Bug report (encountered problems with youtube-dl)
  • Site support request (request for adding support for a new site)
  • Feature request (request for a new functionality)
  • Question
  • Other

Description of your issue, suggested solution and other information

Feature request is an option to limit maximum consumed disk space for downloads. Something like --max-total-files-size such that the youtube-dl process would halt if the total number of bytes consumed on your local hard drive exceeds this argument. It would be a safety precaution against things like 1) Malicious user input on a web-app, 2) filling up your disk if you are trying to download an entire channel but don't realize how big it is.

This is different than --max-files as that option could by "bypassed" by a single 200GB video, for example.

@nipan09
Copy link

@nipan09 nipan09 commented Apr 21, 2019

HI! I am a new contributor on github and I want to take up this issue. Provide me the necessary help required.

@Thomasedv
Copy link

@Thomasedv Thomasedv commented Apr 24, 2019

For single files, is this not covered by the --max-filesize option? Does not download files with a size above the given filesize. Granted it doesn't completely help in your second case, but that would at least set an upper limit (number of uploads times the max size) Though having the space needed is more up to the user for situations where they want to download an entire channel, in my opinion.

@dstftw dstftw closed this Jul 16, 2019
@dstftw dstftw added the out-of-scope label Jul 16, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
4 participants
You can’t perform that action at this time.