Skip to content

Commit

Permalink
Use file-local-options/force-media-title instead of media-title
Browse files Browse the repository at this point in the history
  • Loading branch information
cvzi committed Mar 15, 2024
1 parent 3281b5a commit 0696124
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion youtube-upnext.lua
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,7 @@ local function download_upnext(url, post_data)
title = title:gsub("%- YouTube", ""):gsub("^%s+", ""):gsub("%s+$", "")
if title ~= "" then
mp.commandv("print-text", "Title: " ..title .. "\027]0;" .. title .. "\007")
mp.set_property("media-title", title)
mp.set_property("file-local-options/force-media-title", title)
else
mp.commandv("print-text", "\027]0;\007")
end
Expand Down

0 comments on commit 0696124

Please sign in to comment.