tomasklaen / uosc

Feature-rich minimalist proximity-based UI for MPV player.
GNU Lesser General Public License v2.1
1.87k stars 68 forks source link

feat: show playlist files in the file navigation menu #927

Closed christoph-heinrich closed 5 months ago

christoph-heinrich commented 5 months ago

So far the file navigation menu would only show media files and directories, but opening playlist files via that menu is a valid use case as well.

From a quick look at demux_playlist.c and a bit of testing, those seem to be the only playlist formats mpv supports. mpv can also open .txt files as playlists, but they need to be provided via the --playlist=<path> argument and thus don't work here.

ref. https://github.com/tomasklaen/uosc/discussions/926

hooke007 commented 4 months ago

Playlist should be load by loadlist command instead. And the ext name is not necessary actually.

christoph-heinrich commented 4 months ago

Playlist should be load by loadlist command instead.

Yes that would be better.

And the ext name is not necessary actually.

I'm not sure what you mean with that. The extensions are used for filtering which files show up in the navigation menu, so of course they are necessary.

hooke007 commented 4 months ago

ext name is not necessary for mpv.