Skip to content
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

Videos with slash in title are created as directory #324

Closed
orschiro opened this issue Apr 2, 2012 · 2 comments
Closed

Videos with slash in title are created as directory #324

orschiro opened this issue Apr 2, 2012 · 2 comments

Comments

@orschiro
Copy link

@orschiro orschiro commented Apr 2, 2012

Hi guys,

For this case I refer to the video Eric Clapton/JJ Cale-After Midnight.

I tried to download it with youtube-dl.py -ci --extract-audio -o %(title)s.%(ext)s

Unfortunately on a Windows system this causes the creation of a folder "Eric Clapton" with "JJ Cale-After Midnight" inside due to the slash in the title.

How can I prevent this behaviour without changing the output template?

Regards,

Robert

@phihag
Copy link
Contributor

@phihag phihag commented Apr 3, 2012

%(title)s is for the literal title. We should probably deprecate it, and it's undocumented. Use %(stitle)s for the title, unless you're doing some crazy things.

@phihag phihag closed this Apr 3, 2012
@orschiro
Copy link
Author

@orschiro orschiro commented Apr 5, 2012

Thanks. %(title)s indeed led to better results. I cannot even remember any more where I found the information on stitle usage.

Regards

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.