Skip to content

[search_menu] Support titles in playlists #11

Description

@pintassilgo

mpv supports playlists like this (.m3u file):

#EXTM3U
#EXTINF:0,This is the title of the item
https://example.com/file.mp4

In this example, search_menu currently can only find "file.mp4", but should use "This is the title of the item" instead.

search_menu should prefer playlist/N/title, using playlist/N/filename only as fallback if there's no title.

Suggested fix:

-            local filename = mp.get_property("playlist/" .. i .. "/filename")
+            local name = mp.get_property("playlist/" .. i .. "/title")
+            if name == nil then
+              name = mp.get_property("playlist/" .. i .. "/filename")
+            end

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions