Skip to content

Commit

Permalink
select.lua: show the ID of editions without title
Browse files Browse the repository at this point in the history
MKV editions can have no title. Print "Edition" and their IDs instead of
showing an empty selection.
  • Loading branch information
guidocella authored and Dudemanguy committed Jan 24, 2025
1 parent 5bbeabf commit 20375d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion player/lua/select.lua
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ mp.add_key_binding(nil, "select-edition", function ()
local editions = {}

for i, edition in ipairs(edition_list) do
editions[i] = edition.title
editions[i] = edition.title or "Edition " .. (edition.id + 1)
end

input.select({
Expand Down

0 comments on commit 20375d1

Please sign in to comment.