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

Is there a way to programmatically determine the `-x`-produced filename? #5096

Closed
casinero opened this issue Mar 1, 2015 · 1 comment
Closed

Comments

@casinero
Copy link

@casinero casinero commented Mar 1, 2015

I'm wrapping youtube-dl into my own library, as the base of a Chrome extension I'm trying to make. One of the requirements is to obtain only the audio, also getting the filename of the produced audio file. For youtube videos I can make it work using -f bestaudio and --get-filename( or -v), with or without --restrict-filenames, but for most other sites where standalone audio file is not available, I can't find a way to programmatically find out the -x-ed output filename. As I said my goal is to make a general purposed video downloading component/extension (though definitely not feature rich as youtube-dl itself), forcibly specify --audio-format other than best isn't a ideal solution. Is there a way to programmatically determine the -x-ed filename, or at least the name extension?

@casinero
Copy link
Author

@casinero casinero commented Mar 1, 2015

Now I realized simply parsing the stdout should do. Forget about this.

@casinero casinero closed this Mar 1, 2015
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
1 participant
You can’t perform that action at this time.