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-filename shows wrong extension in combination with --extract-audio/--audio-format #16049

Closed
danielmarschall opened this issue Mar 30, 2018 · 1 comment
Labels

Comments

@danielmarschall
Copy link

@danielmarschall danielmarschall commented Mar 30, 2018

Please follow the guide below

  • You will be asked some questions and requested to provide some information, please read them carefully and answer honestly
  • Put an x into all the boxes [ ] relevant to your issue (like this: [x])
  • Use the Preview tab to see what your issue will actually look like

Make sure you are using the latest version: run youtube-dl --version and ensure your version is 2018.03.26.1. 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 2018.03.26.1

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

The option --get-filename does not show the final filename if it is combined with --extract-audio and/or --audio-format

Example:

youtube-dl --get-filename --extract-audio --audio-format mp3 https://www.youtube.com/watch?v=XYZ

Expected behavior

The output filename provided by --get-filename should be:
VideoTitle-XYZ.mp3

Actual behavior

But it is:
VideoTitle-XYZ.webm

@dstftw
Copy link
Collaborator

@dstftw dstftw commented Mar 31, 2018

This is expected behavior.

@dstftw dstftw closed this Mar 31, 2018
@dstftw dstftw added the invalid label Mar 31, 2018
@alxnull alxnull mentioned this issue Oct 19, 2019
5 of 9 tasks complete
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.