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

Entire playlist downloaded for a video page with &list= in the URL #755

Closed
ivan opened this issue Mar 25, 2013 · 9 comments
Closed

Entire playlist downloaded for a video page with &list= in the URL #755

ivan opened this issue Mar 25, 2013 · 9 comments
Assignees

Comments

@ivan
Copy link
Contributor

ivan commented Mar 25, 2013

Passing youtube-dl a video page with a &list= URL argument downloads the entire playlist instead of just that video, e.g.:

$ python -m youtube_dl "https://www.youtube.com/watch?v=QUisTd3jvO4&list=PLpWI1yEIe1nEu2w2UyV0dW6fPj6fnhTzE&index=2"
[youtube] PL PLpWI1yEIe1nEu2w2UyV0dW6fPj6fnhTzE: Downloading page #1
[youtube] PL PLpWI1yEIe1nEu2w2UyV0dW6fPj6fnhTzE: Found 15 videos
...

I didn't expect this behavior, though I guess some could disagree. Note that users can easily reach the actual /playlist by following the playlist link above the video.

@FiloSottile
Copy link
Collaborator

Heh, I knew this would have been troublesome. See #668. @phihag?

I didn't notice that the link at the top is the link to the playlist, honestly. But your reasoning makes sense. This is a video, the playlist is there. Actually, there's no link to the plain single video in the page. I think we made the wrong decision.

@danielholmes
Copy link

Is there any way available to download just the current video being shown in a playlist (with some specific set of options or something)?

If not then how about the following (backward compatible) solution:

For the --playlist-start and playlist-end options, have a special value current which takes the index of the current video being shown. If there's no explicit video id in the url, then fall back to the value 1. To download just the current video in the playlist:

youtube-dl --playlist-start current --playlist-end current "https://www.youtube.com/watch?v=QUisTd3jvO4&list=PLpWI1yEIe1nEu2w2UyV0dW6fPj6fnhTzE"

@jaimeMF
Copy link
Collaborator

jaimeMF commented Sep 18, 2013

@danielholmes or you can just run youtube-dl https://www.youtube.com/watch?v=QUisTd3jvO4 or youtube-dl QUisTd3jvO4

@danielholmes
Copy link

@jaimeMF the specific use case we have is that our users provide a url to a youtube video that they want to reference. We want to avoid having to educate them about different types of youtube URLs and what ones will or wont work. Thanks for the suggestions though (I didn't realise that second form works with youtube-dl)

jaimeMF referenced this issue in jaimeMF/youtube-dl Sep 18, 2013
…as playlists (fixes #755)

It's unintuitive and this is way you get the url when you watch the video inside a playlist
@FiloSottile
Copy link
Collaborator

I was unsure about what behavior to take when implementing this. I was
convinced to make ytdl download the playlist when they told me that you can
get the single video link from the big title.

However, I am +1 on a "--no-playlist" flag, I see how it can be
inconvenient, and a explicit flag would not be confusing.
Any opinions? Or can I provide a PR for this?

@phihag
Copy link
Contributor

phihag commented Sep 18, 2013

Yes, as seen in #668, other users expect us to download the playlist, so a flag may be best (bonus points for modifying the status message to Downloading playlist PLfoobar - add --no-playlist to just download video bazbam). Feel free to draft up a PR.

@jaimeMF
Copy link
Collaborator

jaimeMF commented Sep 18, 2013

I think that we should treat them as videos, we have receive some reports about this, and even if it's really easy to download just the video (copying the id or dropping the list parameter), that's not what a standard user would do. As you have already said, getting the link to the playlist from the video page is easy.

@FiloSottile
Copy link
Collaborator

Umh, actually this is the default playlist view (there is no other one,
only this and the non-playing index) and it is easier to get the video link
than the playlist link.

Unsure about this, just like to other time...

Filippo Valsorda

2013/9/18 Jaime Marquínez Ferrándiz [email protected]

I think that we should treat them as videos, we have receive some reports
about this, and even if it's really easy to download just the video
(copying the id or dropping the list parameter), that's not what a standard
user would do. As you have already said, getting the link to the playlist
from the video page is easy.


Reply to this email directly or view it on GitHubhttps://github.com//issues/755#issuecomment-24661322
.

@jaimeMF
Copy link
Collaborator

jaimeMF commented Sep 18, 2013

You're right and a lot of users probably just see it (they click Play all). It's harder to decide and I'm not as confident as before. Adding the flag would solve it, but I don't like this approach too much.

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

Successfully merging a pull request may close this issue.

5 participants