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

When using ytuser:ChannelName, the "playlist_title" doesn't work #12522

Closed
mattkomarnicki opened this issue Mar 22, 2017 · 1 comment
Closed

When using ytuser:ChannelName, the "playlist_title" doesn't work #12522

mattkomarnicki opened this issue Mar 22, 2017 · 1 comment
Labels

Comments

@mattkomarnicki
Copy link

@mattkomarnicki mattkomarnicki commented Mar 22, 2017

Make sure you are using the latest version: run youtube-dl --version and ensure your version is 2017.03.22. If it's not read this FAQ entry and update. Issues with outdated version will be rejected.

  • [x ] I've verified and I assure that I'm running youtube-dl 2017.03.22

Before submitting an issue make sure you have:

  • [x ] At least skimmed through README and most notably FAQ and BUGS sections
  • [x ] Searched the bugtracker for similar issues including closed ones

What is the purpose of your issue?

  • [ x] Bug report (encountered problems with youtube-dl)
  • Site support request (request for adding support for a new site)
  • Feature request (request for a new functionality)
  • Question
  • Other

I'm trying to download all videos from a YouTube channel and put them in a directory that matches playlist name.

youtube-dl ytuser:ChannelFooBarBaz -f best -o '%(playlist_title)s/%(playlist_index)s_%(upload_date)s_%(title)s'

The problem with the above syntax is that all videos are being pulled to the same directory called Uploads from ChannelFooBarBaz instead of playlist name's a particular video is assigned to.

For example if channel has Playlist Foo and Playlist Bar it should create 2 directories and pull corresponding video there. Now everything lands in Uploads from ChannelFooBarBaz.

The issue is probably around %(playlist_title)s but according to the docs:

playlist_title (string): Playlist title

it should be pretty straightforward.

Problem is solved only when I replace ytuser:ChannelFooBarBaz with explicit URL to a single playlist. Then directory name is correct, but if a channel has 50 playlists, I don't want to manually do this 50 times.

What am I doing wrong?

@dstftw
Copy link
Collaborator

@dstftw dstftw commented Mar 22, 2017

You must use playlists URL not ytuser: https://www.youtube.com/user/.../playlists.

@dstftw dstftw closed this Mar 22, 2017
@dstftw dstftw added the invalid label Mar 22, 2017
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.