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

[Feature Request]: Show playlist or playlist link if video is part of playlist #2085

Open
1 task done
toby63 opened this issue Feb 17, 2022 · 9 comments
Open
1 task done
Labels
E: new feature enhancement New feature or request

Comments

@toby63
Copy link

toby63 commented Feb 17, 2022

Guidelines

  • I have searched the issue tracker for a feature request that matches the one I want to file, without success.

Problem Description

Sometimes a video is part of a playlist and I would like to be able to see this playlist, even if the video creator does not link to it.

Proposed Solution

Maybe it is possible to read out the necessary information and then:

  • display a link to the playlist
  • implement the playlist itself on the right (could be an option in the settings)

Alternatives Considered

Issue Labels

new feature

Additional Information

No response

@toby63 toby63 added the enhancement New feature or request label Feb 17, 2022
@efb4f5ff-1298-471a-8973-3d47447115dc

Hmm but what if the video is linked to lets say 100 playlists?

@toby63
Copy link
Author

toby63 commented Feb 17, 2022

Hmm but what if the video is linked to lets say 100 playlists?

Never came across something like this.
I only saw 2 playlists linked to a video at most.
But maybe there could be a solution for this as well.
For example only showing 1 or 2 playlists.
I don't know about the youtube api, maybe there is something like a main playlist or ranked playlists.
At least it could be limited to the playlists of the channel that the video is from.

@PrestonN
Copy link
Member

I'm not sure if I'm fully understanding what's being requested. Are you asking if you're watching a video and that video happens to be a part of any playlist, then show a link to that playlist? We would only realistically be able to provide this if you're already inside of the playlist in question (which doesn't seem to be the case) or if YouTube provides this information on the watch page, which I don't believe it does. If it does then we can provide this information, if it doesn't then we will have to close this issue.

@ChunkyProgrammer
Copy link
Member

ChunkyProgrammer commented Feb 20, 2022

I had a quick look and it could potentially work if the video has a unique enough name but would otherwise return false positives (getting playlists a video is in is done by searching video title in quotes and searching for playlists only ). To fix the issue of false positives, it could only display playlists created by the uploader (like you said). Source: https://stackoverflow.com/a/31136758

Edit: if this were to be implemented I think it should be implemented like comments where you click to load the playlist links so it doesn't send any extra web requests unless the user wants it to

@toby63
Copy link
Author

toby63 commented Feb 20, 2022

I'm not sure if I'm fully understanding what's being requested. Are you asking if you're watching a video and that video happens to be a part of any playlist, then show a link to that playlist?

Yes thats what I want.

We would only realistically be able to provide this if you're already inside of the playlist in question (which doesn't seem to be the case) or if YouTube provides this information on the watch page, which I don't believe it does. If it does then we can provide this information, if it doesn't then we will have to close this issue.

I mostly start videos from inside the playlist, but the second (less likely) scenario would also be useful.

I had a quick look and it could potentially work if the video has a unique enough name but would otherwise return false positives (getting playlists a video is in is done by searching video title in quotes and searching for playlists only ). To fix the issue of false positives, it could only display playlists created by the uploader (like you said). Source: https://stackoverflow.com/a/31136758

Maybe it would be possible to just search inside the channel of the video uploader.
I am not informed enough about the youtube api, but this looks interesting: https://developers.google.com/youtube/v3/docs/playlists/list

Edit: if this were to be implemented I think it should be implemented like comments where you click to load the playlist links so it doesn't send any extra web requests unless the user wants it to

I agree, good idea.

@PrestonN
Copy link
Member

Just to clarify, we are not using the YouTube API. We are grabbing information from the YouTube website itself. This means that there is data that the YouTube API might provide that we don't have access to. If you can not access the necessary data by navigating around the YouTube website to get it, then we can't get it either.

@ChunkyProgrammer
Copy link
Member

The way to go about getting this information is not optimal. There's a good chance of being able to access it through navigating the YouTube website if the video title is unique enough but it's not guaranteed to have the video in the playlist (ex could just have someone's reaction to the video).

Step 1) Get title of video you want
image
Step 2) Search title in quotes (show playlists only)
image
Result:
image
image

@toby63
Copy link
Author

toby63 commented Feb 20, 2022

Just to clarify, we are not using the YouTube API. We are grabbing information from the YouTube website itself. This means that there is data that the YouTube API might provide that we don't have access to. If you can not access the necessary data by navigating around the YouTube website to get it, then we can't get it either.

Interesting, didn't know that.

@github-actions
Copy link
Contributor

This issue is stale because it has been open 28 days with no activity. Remove stale label or comment or this will be closed in 7 days.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
E: new feature enhancement New feature or request
Projects
Status: To assign
Development

No branches or pull requests

4 participants