Skip to content

Commit

Permalink
Use the user-data property to pass parsed playlist titles
Browse files Browse the repository at this point in the history
Other scripts of interest can also use it
  • Loading branch information
dyphire committed Jun 22, 2024
1 parent 1911dc0 commit 6217a12
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions playlistmanager.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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"))
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 6217a12

Please sign in to comment.