when calling "get command" menu item, spaces in output filename template break template argument #173
Closed
5 of 9 tasks
Labels
Milestone
Please follow the guide below
x
into all the boxes [ ] relevant to your issue (like that [x])WARNING
All the invalid issues will be rejected!!
Before going further
If your problem is a bug with the youtube-dl program or a request for new site support please report it here
Make sure you are using the latest youtube-dl-gui version:
Options > About
tab. If it's not please download & install the latest version for your OS and check if your issue still persistsMake sure you are using the latest youtube-dl version: Click the
Update
button on the main screen and check if your issue still persistsMake sure you searched the bugtracker for similar issues including closed ones
What is the purpose of your issue?
Please remove the following section between the (---) if your problem does not belong to the first two categories (bug report)
What operating system do you use ?
Windows 10 x64 russian locale
List of actions to perform to reproduce the problem:
%(upload_date)s\%(id)s_%(playlist_id)s - %(format)s.%(ext)s
What is the expected behaviour ?
output filename template command line argument is correctly escaped so that spaces in template do not split it into multiple separate (invalid) arguments, so that youtube-dl could correctly run that command, e. g.
youtube-dl.exe -o "%(upload_date)s\%(id)s_%(playlist_id)s - %(format)s.%(ext)s"
What happens instead ?
spaces are not escaped and since in windows command line commands space is an arguments separator, therefore not properly escaped spaces split template argument on multiple args and break the command, so that youtube-dl already cannot rut in correctly, e. g.
youtube-dl.exe -o %(upload_date)s\%(id)s_%(playlist_id)s - %(format)s.%(ext)s
Description of your issue, suggested solution and other information. Please make sure the description is worded well enough to be understood.
I suggest at least to wrap the output filename template in double quotes as I showed that above, as the easiest (but maybe not the best) solution.
The text was updated successfully, but these errors were encountered: