Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
Output filename broken. Cannot predict the output filename #6506
Comments
|
Duplicate of #5710. |
|
Hey @dstftw, I feel this is not a duplicate because that issue has to do with the My issue is that I have no extension in the output filename, so I feel regardless of what internal merging needs to happen, there should be no extension on the output. I think the final stage of saving the file should respect the -o argument, especially if no extension template is given. Can this issue be re-opened and marked as different than that issue? |
Running the command:
youtube-dl -o 77d8f26f-3685-4c87-898f-2f4d98d3532b --get-filename -- 70wDodLb-m8Give the following output:
77d8f26f-3685-4c87-898f-2f4d98d3532bwhich is of course correct, since that is the output filename I gave it. And this often works fine.However, sometimes the following happens:
So the resulting filename is the argument passed to -o with a ".webm" attached. Sometimes this appears to result in a ".mkv" attached as well.
I feel like this behavior is in error, and at the very least should come back with the correct filename when "--get-filename" is used.
This is currently breaking a software chain as the resulting file cannot be found.