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

Show youtube titles instead of url in playlist #472

Open
kilisio opened this issue Mar 12, 2023 · 8 comments
Open

Show youtube titles instead of url in playlist #472

kilisio opened this issue Mar 12, 2023 · 8 comments

Comments

@kilisio
Copy link

kilisio commented Mar 12, 2023

I am using https://github.com/cvzi/mpv-youtube-upnext plugin to make mpv autoplay youtube videos. When I open the playlist in uosc to view auto added titles, it lists urls and not the titles of the videos. I would like it to show the titles like how https://github.com/jonniek/mpv-playlistmanager plugin does.

@christoph-heinrich
Copy link
Contributor

uosc already shows the title if available by default.
What do you expect we should do, make a request to YouTube for each playlist entry to get the title? I can already tell you that's never going to happen.

@tomasklaen
Copy link
Owner

There was already #395 regarding this, and I believe this was discussed somewhere else as well, but I'll reiterate the state of this feature here:

When mpv provides a title to a playlist entry, we display it. If you see urls, it means those titles are not available, and we'd have to retrieve them by making an http request to youtube for every url, which for big playlists would turn uosc users into youtube ddosing machines. That's how the scripts you linked work if I'm not mistaken, and I don't like it to be honest.

The only realistic approach would be a url->title resolving server similar to thumbfast, where we could ask it for titles to urls currently on screen, and it would retrieve it and cache the results. I'd like this as well, unfortunately I don't have much development time to donate these days, so this is in limbo.

@cvzi
Copy link

cvzi commented Mar 13, 2023

The cvzi/mpv-youtube-upnext script has the title, but I don't know how to add the title to the playlist entry

@christoph-heinrich
Copy link
Contributor

I don't know how to add the title to the playlist entry

But I do 😉

@cvzi
Copy link

cvzi commented Mar 13, 2023

I thought you would know, thanks!

@kilisio
Copy link
Author

kilisio commented Mar 13, 2023

It works, thanks

@kilisio kilisio closed this as completed Mar 13, 2023
@tomasklaen
Copy link
Owner

Keep the issue open as this is something I'd like to have in uosc one day.

@tomasklaen tomasklaen reopened this Mar 13, 2023
@mrfragger
Copy link

no longer have to use in mpv.conf using nightly builds
reset-on-next-file=force-media-title

If you didn't with mpv 0.38 the youtube playlists wouldn't show their titles (IIRC). Downside was iptv playlists wouldn't show titles.

Now with nightly builds the
--osd-playlist-entry=<title|filename|both>

Whether to display the media title, filename, or both. If the media-title is not available, it will display only the filename.

Default: title.

shows youtube playlists titles and iptv titles....but yes still elusive media-title in osd is a tough one

@tomasklaen tomasklaen changed the title show youtube titles instead of url Show youtube titles instead of url in playlist Nov 12, 2024
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

No branches or pull requests

5 participants