Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP


typo in '-o, --output TEMPLATE' %(stitle)s should be %(title)s #220

non7top opened this Issue · 4 comments

2 participants

non7top Philipp Hagemeister

Not quite sure how it was intended, but %(stitle)s doesn't ouput anything for me, and %(title)s outputs literal title.

Philipp Hagemeister

$(stitle)s is the simplified or safe title. Since the original video title can contain characters such as slashes or backslashes, you almost certainly want stitle. If stitle is empty, but title is not, and the video's title is readable and safe on all platforms, this is a bug in the title simplification code. Can you post the exact command line that shows the problem?

It works fine for me:

$ youtube-dl -o 'X%(stitle)sY'
[youtube] Setting language
[youtube] uHlDtZ6Oc3s: Downloading video webpage
[youtube] uHlDtZ6Oc3s: Downloading video info webpage
[youtube] uHlDtZ6Oc3s: Extracting video information
[download] Destination: Xyoutube_dl_testvidY

It could be related to UTF filenames (cyrillic)

$ youtube-dl --format 37/22/18 --no-overwrites --quiet --output '/mnt/storage/download/%(autonumber)s-%(stitle)s.%(ext)s' --get-filename

$ youtube-dl --format 37/22/18 --no-overwrites --quiet --output '/mnt/storage/download/%(autonumber)s-%(title)s.%(ext)s' --get-filename
/mnt/storage/download/00001-Схватка. Русский трейлер.mp4
/mnt/storage/download/00002-Американский пирог. Все в сборе. Русский трейлер.mp4

Philipp Hagemeister

I'll have a look at the simplification code. It should be generalized across all IEs anyways.

Philipp Hagemeister phihag closed this in af8e8d6
Philipp Hagemeister

This should be fixed in youtube-dl 2011.11.21.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.