Skip to content

Is there a way to prioritize playlist title over metadata title #16006

Closed Answered by barraIhsan
barraIhsan asked this question in Q&A
Discussion options

You must be logged in to vote

Final:

require("mp")

local function title()
	local pl_index = mp.get_property("playlist-current-pos")
	local pl_title = mp.get_property("playlist/" .. pl_index .. "/title")

	-- force playlist title if it have one
	if pl_title ~= nil then
		mp.set_property("force-media-title", pl_title)
	end
end

mp.register_event("file-loaded", title)

Replies: 2 comments 6 replies

Comment options

You must be logged in to vote
6 replies
@barraIhsan
Comment options

@guidocella
Comment options

@barraIhsan
Comment options

@barraIhsan
Comment options

Answer selected by barraIhsan
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants