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

Closed
non7top opened this Issue Nov 20, 2011 · 4 comments

Comments

Projects
None yet
2 participants

non7top commented Nov 20, 2011

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

Collaborator

phihag commented Nov 20, 2011

$(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' http://www.youtube.com/watch?v=uHlDtZ6Oc3s
[youtube] Setting language
[youtube] uHlDtZ6Oc3s: Downloading video webpage
[youtube] uHlDtZ6Oc3s: Downloading video info webpage
[youtube] uHlDtZ6Oc3s: Extracting video information
[download] Destination: Xyoutube_dl_testvidY

non7top commented Nov 20, 2011

It could be related to UTF filenames (cyrillic)

$ youtube-dl https://www.youtube.com/user/UniversalPicturesRus --format 37/22/18 --no-overwrites --quiet --output '/mnt/storage/download/%(autonumber)s-%(stitle)s.%(ext)s' --get-filename
/mnt/storage/download/00001-.mp4
/mnt/storage/download/00002-.mp4

$ youtube-dl https://www.youtube.com/user/UniversalPicturesRus --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

Collaborator

phihag commented Nov 20, 2011

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

phihag closed this in af8e8d6 Nov 21, 2011

Collaborator

phihag commented Nov 21, 2011

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