Skip to content

Commit

Permalink
No longer uppercase track lang (#58)
Browse files Browse the repository at this point in the history
MPV upstream commit mpv-player/mpv@ab3b174 has introduced support for BCP 47 language tags, and now track lang has uppercase and lowercase content.
  • Loading branch information
dyphire committed Apr 18, 2024
1 parent c582601 commit 21825a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lua/dyn_menu.lua
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ local function build_track_items(list, type, prop, prefix)

items[#items + 1] = {
title = build_track_title(track, prefix, filename),
shortcut = (track.lang and track.lang ~= '') and track.lang:upper() or nil,
shortcut = (track.lang and track.lang ~= '') and track.lang or nil,
cmd = string.format('set %s %d', prop, track.id),
state = state,
}
Expand Down

0 comments on commit 21825a1

Please sign in to comment.