mirror of
https://github.com/rydesun/dotfiles.git
synced 2026-01-13 10:07:59 +08:00
fix(mpv): subtitle with unmatched resolution
This commit is contained in:
parent
63148ee601
commit
92478627bd
1 changed files with 1 additions and 1 deletions
|
|
@ -43,7 +43,7 @@ local function add_current_subs()
|
|||
end
|
||||
local _, filename = utils.split_path(filepath)
|
||||
local prefix = filename:match("(.+%.[12][0-9][0-9][0-9])%..+") or
|
||||
filename:match("(.+%.[0-9]+p)%..+") or
|
||||
filename:match("(.+)%.[0-9]+p%..+") or
|
||||
filename:match("(.+)%..+")
|
||||
local dir = get_parrent_dir(filepath)
|
||||
add_subtitles(dir, prefix)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue