filename templates are not working if a question mark is in the title. #68

Closed
opened 2026-02-20 22:24:38 -05:00 by deekerman · 4 comments
Owner

Originally created by @zion2k on GitHub (Apr 10, 2011).

Hi,

if there is a question mark in the video title youtube-dl skips the given filename template. is it possible to ignore such characters?
I am using the latest version.

regards
Christian

Originally created by @zion2k on GitHub (Apr 10, 2011). Hi, if there is a question mark in the video title youtube-dl skips the given filename template. is it possible to ignore such characters? I am using the latest version. regards Christian
deekerman 2026-02-20 22:24:38 -05:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@FiloSottile commented on GitHub (Mar 5, 2012):

Working in 9c228928b6
Please close

@FiloSottile commented on GitHub (Mar 5, 2012): Working in 9c228928b6 Please close
Author
Owner

@Sepero commented on GitHub (Oct 31, 2012):

Is this still an issue?

@Sepero commented on GitHub (Oct 31, 2012): Is this still an issue?
Author
Owner

@FiloSottile commented on GitHub (Oct 31, 2012):

I do not think so, I can't remember anything, but I will trust myself :P
Anyway, we are already reworking the escaping, no?

@FiloSottile commented on GitHub (Oct 31, 2012): I do not think so, I can't remember anything, but I will trust myself :P Anyway, we are already reworking the escaping, no?
Author
Owner

@Tailszefox commented on GitHub (Oct 31, 2012):

Trying with the first video with a question mark in the title I could find:

> youtube-dl --get-filename -o "%(id)s - %(stitle)s.%(ext)s" "https://www.youtube.com/watch?v=CUJqS8_RLKg"
CUJqS8_RLKg - hmm title  maturity  riots  WTF question marks.mp4

Seems the question marks are striped, which I think is the expected result unless I misunderstood something, so it looks fixed to me!

@Tailszefox commented on GitHub (Oct 31, 2012): Trying with the first video with a question mark in the title I could find: ``` > youtube-dl --get-filename -o "%(id)s - %(stitle)s.%(ext)s" "https://www.youtube.com/watch?v=CUJqS8_RLKg" CUJqS8_RLKg - hmm title maturity riots WTF question marks.mp4 ``` Seems the question marks are striped, which I think is the expected result unless I misunderstood something, so it looks fixed to me!
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/youtube-dl-ytdl-org#68
No description provided.