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

Get the file extension only #15511

Closed
rajucomp opened this issue Feb 6, 2018 · 2 comments
Closed

Get the file extension only #15511

rajucomp opened this issue Feb 6, 2018 · 2 comments

Comments

@rajucomp
Copy link

@rajucomp rajucomp commented Feb 6, 2018

Youtube-dl output template says that %(ext)s specifies the extension of a file to be downloaded. Is there any way I can extract this %(ext)s value and assign it to a variable ?

@dstftw
Copy link
Collaborator

@dstftw dstftw commented Feb 6, 2018

Parse --dump-json.

@dstftw dstftw closed this Feb 6, 2018
@garynicolas
Copy link

@garynicolas garynicolas commented Feb 14, 2018

Hello, and do you have a solution to get it in python after downloading ?

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
3 participants
You can’t perform that action at this time.