-
Notifications
You must be signed in to change notification settings - Fork 248
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
Special characters in playlist title causes unexpected behaviour #350
Comments
It has probably something to do with this line. |
@PikuZheng In your screenshot the "M/V" and "C/D" are part of |
I see. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
How to reproduce:
OUTPUT_TEMPLATE
to%(playlist_title)s_%(title)s.%(ext)s
or similarExpected behaviour
The playlist title is "A/B" and the video title is "C/D", so I expect the name of the output file to be "A/B_C/D" in the download directory.
Actual behaviour
A file with name "B_C/D" is created in a subdirectory named "A". So apparently the slash is interpreted as directory symbol, however only in the playlist title and not the video title.
Other info
I created the following python script and ran it in the same docker container:
Here, the problem does not happen and the result is according to the expected behavour.
When using option
restrictfilenames
, the directory A is still created and the file is called "B_C_D". (With the script: No directory and file name "A_B_C_D").The text was updated successfully, but these errors were encountered: