Mess
This commit is contained in:
@@ -6,3 +6,9 @@ S screenshot-to-file /tmp/mpv-screenshot.png ; run sh -c "cat /tmp/mpv-screensho
|
||||
|
||||
x add sub-delay -0.04
|
||||
X add sub-delay +0.04
|
||||
|
||||
# increase subtitle font size
|
||||
ALT+k add sub-scale +0.1
|
||||
|
||||
# decrease subtitle font size
|
||||
ALT+j add sub-scale -0.1
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
profile=gpu-hq
|
||||
#gpu-api=vulkan
|
||||
#gpu-context=waylandvk
|
||||
gpu-context=wayland
|
||||
hwdec=none
|
||||
|
||||
@@ -33,3 +34,9 @@ ytdl-format=bestvideo[height<=?1080]+bestaudio/best
|
||||
#ytdl-raw-options="rm-cache-dir=:yes-playlist="
|
||||
|
||||
osd-fractions=yes
|
||||
|
||||
[downmix]
|
||||
profile-desc="downmixing profile"
|
||||
profile-cond=p["audio-params/channel-count"] > 2
|
||||
ad-lavc-downmix=no
|
||||
af=lavfi="pan=stereo|FL=0.5*FC+0.707*FL+0.707*BL+0.5*LFE|FR=0.5*FC+0.707*FR+0.707*BR+0.5*LFE"
|
||||
|
||||
1
.config/mpv/script-opts/.gitignore
vendored
Normal file
1
.config/mpv/script-opts/.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
||||
japan7.conf
|
||||
34
.config/mpv/scripts/japan7.lua
Normal file
34
.config/mpv/scripts/japan7.lua
Normal file
@@ -0,0 +1,34 @@
|
||||
local settings = {
|
||||
username = "",
|
||||
password = "",
|
||||
projo_host = ""
|
||||
}
|
||||
|
||||
local opts = require 'mp.options'
|
||||
opts.read_options(settings, "japan7")
|
||||
|
||||
|
||||
local function is_projo(path)
|
||||
return path:match("^https://projection")
|
||||
end
|
||||
|
||||
|
||||
function on_load()
|
||||
local path = mp.get_property("path")
|
||||
local match = path:gsub("^https://fubuki.aidoru.agency", "https://"..settings.username..":"..settings.password.."@fubuki.aidoru.agency")
|
||||
match = match:gsub("^https://korone.aidoru.agency", "https://"..settings.username..":"..settings.password.."@korone.aidoru.agency")
|
||||
match = match:gsub("^https://yuyuko.butaishoujo.moe", "https://"..settings.username..":"..settings.password.."@yuyuko.butaishoujo.moe")
|
||||
match = match:gsub("^https://projo.yuru.moe", "https://"..settings.username..":"..settings.password.."@projo.yuru.moe")
|
||||
match = match:gsub("^https://projection", settings.projo_host)
|
||||
if match ~= path then
|
||||
if is_projo(path) then
|
||||
local stream = match:gsub("^(.+)/.-$", "%1/stream")
|
||||
mp.set_property("ordered-chapters-files", stream)
|
||||
end
|
||||
mp.set_property("stream-open-filename", match)
|
||||
local ass = match:gsub("...$", "ass")
|
||||
mp.commandv("sub-add", ass)
|
||||
end
|
||||
end
|
||||
|
||||
mp.register_event('start-file', on_load)
|
||||
Reference in New Issue
Block a user