Skip to content

Commit

Permalink
Merge pull request #144 from dyphire/user-data
Browse files Browse the repository at this point in the history
Use the `user-data` property to pass parsed playlist titles
  • Loading branch information
jonniek authored Jul 26, 2024
2 parents 7d95e23 + 6217a12 commit a8d7f45
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 @@ -1539,6 +1539,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 @@ -1579,6 +1580,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 a8d7f45

Please sign in to comment.