mpv 0.35.0ではデフォルトで動作します。

mpv 0.35.0ではデフォルトで動作します。

Mpvの名前は同じですが、ファイル拡張子が別の同じディレクトリにある場合でも、歌詞ファイルをロードして再生しません.lrc。私のmpv.confファイルには次のものが含まれています。

autoload-files=yes
sub-auto=fuzzy

ベストアンサー1

これらのオプションを使用してもmpvはLyRiCs()ファイルをロードしないようです.lrc。私がしなければならないのは、小さなmpvプラグインスクリプトを作成してscriptsmpvディレクトリ内のディレクトリに配置することだけです。config

--  load lrc files

function file_exists(name)
   local f=io.open(name,"r")
   if f~=nil then io.close(f) return true else return false end
end

function GetLrcPath(name)
  return name:gsub("(%..+)$", ".lrc")
end

function open_handler()
        lrcPath = GetLrcPath(mp.get_property("path"))
        if file_exists(lrcPath) then
            mp.set_property("options/sub-files", lrcPath)
        end
end
mp.register_event("start-file", open_handler)

おすすめ記事