Skip to content

[search_menu] Support titles in playlists #11

@pintassilgo

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

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