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

youtube-dl can I store the size of the video in a variable to access outside #11611

Closed
sant527 opened this issue Jan 5, 2017 · 1 comment
Closed

Comments

@sant527
Copy link

@sant527 sant527 commented Jan 5, 2017

I am using linux and youtube-dl

I saw
filesize: The number of bytes, if known in advance
filesize_approx: An estimate for the number of bytes

how to store that in a vriable in my shell script.

I dont want to download videos > 20MB or so.

@yan12125
Copy link
Collaborator

@yan12125 yan12125 commented Jan 5, 2017

how to store that in a vriable in my shell script.

Use -j and parse the result

I dont want to download videos > 20MB or so.

--max-filesize can help.

@yan12125 yan12125 closed this Jan 5, 2017
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
2 participants
You can’t perform that action at this time.