-
Notifications
You must be signed in to change notification settings - Fork 10k
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
Add a "--get-size" option #9171
Comments
No, use |
How do I print the filesize from the command line using JSON output ? |
E.g. parse |
Here is what I get with
Can you be more precise ? |
I don't have |
YouTube does not provide all filesize information for all formats. In this example only DASH formats have the size information.
|
Hi, If "YouTube does not provide all filesize information for all formats", why not use the "Content-Length" found in the HTTP headers to implement the
|
|
Why not use a |
A reason is that querying the filesize for all formats takes a long time. This can be a feature request if the additional time cost is tolerable. If you're interested in only one format - just do the curl call. |
"querying the filesize for all formats" does not make any sense according to me. Why not include the |
yes. |
Please follow the guide below
x
into all the boxes [ ] relevant to your issue (like that [x])Make sure you are using the latest version: run
youtube-dl --version
and ensure your version is 2016.04.06. If it's not read this FAQ entry and update. Issues with outdated version will be rejected.Before submitting an issue make sure you have:
What is the purpose of your issue?
The following sections concretize particular purposed issues, you can erase any section (the contents between triple ---) not applicable to your issue
If the purpose of this issue is a bug report, site support request or you are not completely sure provide the full verbose output as follows:
Add
-v
flag to your command line you run youtube-dl with, copy the whole output and insert it here. It should look similar to one below (replace it with your log inserted between triple ```):If the purpose of this issue is a site support request please provide all kinds of example URLs support for which should be included (replace following example URLs by yours):
Description of your issue, suggested solution and other information
Explanation of your issue in arbitrary form goes here. Please make sure the description is worded well enough to be understood. Provide as much context and examples as possible.
If work on your issue required an account credentials please provide them or explain how one can obtain them.
Hi, can you add a "--get-size" option ?
The text was updated successfully, but these errors were encountered: