From 6217a128fcc03e93255cddada2e85665c3225c4e Mon Sep 17 00:00:00 2001 From: dyphire Date: Sat, 22 Jun 2024 23:33:11 +0800 Subject: [PATCH] Use the `user-data` property to pass parsed playlist titles Other scripts of interest can also use it --- playlistmanager.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/playlistmanager.lua b/playlistmanager.lua index eb91342..5f8bcdd 100644 --- a/playlistmanager.lua +++ b/playlistmanager.lua @@ -1509,6 +1509,7 @@ function resolve_ytdl_title(filename) local title = (is_playlist and '[playlist]: ' or '') .. json['title'] msg.verbose(filename .. " resolved to '" .. title .. "'") title_table[filename] = title + mp.set_property_native('user-data/playlistmanager/titles', title_table) refresh_UI() else msg.error("Failed parsing json, reason: "..(err or "unknown")) @@ -1549,6 +1550,7 @@ function resolve_ffprobe_title(filename) if title then msg.verbose(filename .. " resolved to '" .. title .. "'") title_table[filename] = title + mp.set_property_native('user-data/playlistmanager/titles', title_table) refresh_UI() end else