mirror of
https://github.com/ksyasuda/dotfiles.git
synced 2026-02-28 00:22:41 -08:00
Remove yt-dlp sponsorblock options from mpv configs
- Remove sponsorblock-mark and sponsorblock-remove from default, WSL, and Darwin configs - Rely on sponsorblock.lua script instead, which handles skipping during playback - The ytdl-raw-options comma parsing was breaking the category list anyway
This commit is contained in:
@@ -37,9 +37,6 @@ audio-wait-open=0.1 # Shorten audio device warm-up for snappier playback
|
|||||||
# --- Networking & remote sources ---
|
# --- Networking & remote sources ---
|
||||||
ytdl-format=bestvideo+bestaudio/best
|
ytdl-format=bestvideo+bestaudio/best
|
||||||
ytdl-raw-options=sub-langs=en.*,write-auto-subs=
|
ytdl-raw-options=sub-langs=en.*,write-auto-subs=
|
||||||
ytdl-raw-options-append=sponsorblock-mark=all
|
|
||||||
ytdl-raw-options-append=sponsorblock-remove=sponsor,selfpromo,interaction
|
|
||||||
|
|
||||||
# --- Video output & decoding ---
|
# --- Video output & decoding ---
|
||||||
vo=gpu-next
|
vo=gpu-next
|
||||||
hwdec=nvdec
|
hwdec=nvdec
|
||||||
@@ -111,7 +108,9 @@ demuxer-max-back-bytes=200MiB # Keep recent data handy for quick reverse seeks
|
|||||||
cache-secs=30
|
cache-secs=30
|
||||||
demuxer-readahead-secs=30
|
demuxer-readahead-secs=30
|
||||||
|
|
||||||
|
# no, fatal, warn, info, v, debug, trace
|
||||||
msg-level=subs2srs,animecards,mpvacious=error
|
msg-level=subs2srs,animecards,mpvacious=error
|
||||||
|
msg-level=mpv-yomitan=warn
|
||||||
|
|
||||||
[anime]
|
[anime]
|
||||||
profile-desc="Anime upscaling with ArtCNN"
|
profile-desc="Anime upscaling with ArtCNN"
|
||||||
@@ -152,8 +151,6 @@ cookies=yes
|
|||||||
cookies-file=/truenas/sudacode/japanese/cookies.Japanese.txt
|
cookies-file=/truenas/sudacode/japanese/cookies.Japanese.txt
|
||||||
ytdl-raw-options=mark-watched=,write-auto-subs=,sub-langs=ja.*
|
ytdl-raw-options=mark-watched=,write-auto-subs=,sub-langs=ja.*
|
||||||
ytdl-raw-options-append=cookies=/truenas/sudacode/japanese/cookies.Japanese.txt
|
ytdl-raw-options-append=cookies=/truenas/sudacode/japanese/cookies.Japanese.txt
|
||||||
ytdl-raw-options-append=sponsorblock-mark=all
|
|
||||||
ytdl-raw-options-append=sponsorblock-remove=sponsor,selfpromo,interaction
|
|
||||||
ytdl-format=bestvideo+bestaudio/best
|
ytdl-format=bestvideo+bestaudio/best
|
||||||
sub-auto=fuzzy
|
sub-auto=fuzzy
|
||||||
alang=ja,jp,jpn,japanese,en,eng,english,English,enUS,en-US
|
alang=ja,jp,jpn,japanese,en,eng,english,English,enUS,en-US
|
||||||
|
|||||||
@@ -31,9 +31,6 @@ sub-pos=90
|
|||||||
# Networking & streaming
|
# Networking & streaming
|
||||||
ytdl-format=bestvideo+bestaudio/best
|
ytdl-format=bestvideo+bestaudio/best
|
||||||
ytdl-raw-options=sub-langs=en.*,write-auto-subs=
|
ytdl-raw-options=sub-langs=en.*,write-auto-subs=
|
||||||
ytdl-raw-options-append=sponsorblock-mark=all
|
|
||||||
ytdl-raw-options-append=sponsorblock-remove=sponsor,selfpromo,interaction
|
|
||||||
|
|
||||||
# Stats & UI colors (Catppuccin Macchiato)
|
# Stats & UI colors (Catppuccin Macchiato)
|
||||||
background-color='#24273a'
|
background-color='#24273a'
|
||||||
osd-back-color='#181926'
|
osd-back-color='#181926'
|
||||||
@@ -185,8 +182,6 @@ cookies=yes
|
|||||||
cookies-file=/Volumes/sudacode/japanese/cookies.Japanese.txt
|
cookies-file=/Volumes/sudacode/japanese/cookies.Japanese.txt
|
||||||
ytdl-raw-options=mark-watched=,write-auto-subs=,sub-langs=ja.*
|
ytdl-raw-options=mark-watched=,write-auto-subs=,sub-langs=ja.*
|
||||||
ytdl-raw-options-append=cookies=/Volumes/sudacode/japanese/cookies.Japanese.txt
|
ytdl-raw-options-append=cookies=/Volumes/sudacode/japanese/cookies.Japanese.txt
|
||||||
ytdl-raw-options-append=sponsorblock-mark=all
|
|
||||||
ytdl-raw-options-append=sponsorblock-remove=sponsor
|
|
||||||
ytdl-format=bestvideo+bestaudio/best
|
ytdl-format=bestvideo+bestaudio/best
|
||||||
sub-auto=fuzzy
|
sub-auto=fuzzy
|
||||||
alang=ja,jp,jpn,japanese,en,eng,english,English,enUS,en-US
|
alang=ja,jp,jpn,japanese,en,eng,english,English,enUS,en-US
|
||||||
|
|||||||
@@ -41,9 +41,6 @@ audio-wait-open=0.1
|
|||||||
# --- Networking ---
|
# --- Networking ---
|
||||||
ytdl-format=bestvideo+bestaudio/best
|
ytdl-format=bestvideo+bestaudio/best
|
||||||
ytdl-raw-options=sub-langs=en.*,write-auto-subs=
|
ytdl-raw-options=sub-langs=en.*,write-auto-subs=
|
||||||
ytdl-raw-options-append=sponsorblock-mark=all
|
|
||||||
ytdl-raw-options-append=sponsorblock-remove=sponsor,selfpromo,interaction
|
|
||||||
|
|
||||||
# --- Video output & decoding ---
|
# --- Video output & decoding ---
|
||||||
vo=gpu-next
|
vo=gpu-next
|
||||||
hwdec=nvdec
|
hwdec=nvdec
|
||||||
@@ -152,8 +149,6 @@ cookies=yes
|
|||||||
cookies-file="Z:/sudacode/japanese/cookies.Japanese.txt"
|
cookies-file="Z:/sudacode/japanese/cookies.Japanese.txt"
|
||||||
ytdl-raw-options=mark-watched=,write-auto-subs=,sub-langs=ja.*
|
ytdl-raw-options=mark-watched=,write-auto-subs=,sub-langs=ja.*
|
||||||
ytdl-raw-options-append=cookies=Z:/sudacode/japanese/cookies.Japanese.txt
|
ytdl-raw-options-append=cookies=Z:/sudacode/japanese/cookies.Japanese.txt
|
||||||
ytdl-raw-options-append=sponsorblock-mark=all
|
|
||||||
ytdl-raw-options-append=sponsorblock-remove=sponsor,selfpromo,interaction
|
|
||||||
sub-auto=fuzzy
|
sub-auto=fuzzy
|
||||||
alang=ja,jp,jpn,japanese,en,eng,english
|
alang=ja,jp,jpn,japanese,en,eng,english
|
||||||
slang=ja,jp,jpn,japanese,en,eng,english
|
slang=ja,jp,jpn,japanese,en,eng,english
|
||||||
|
|||||||
75
.config/nvim/lua/plugins/none-ls.lua
Normal file
75
.config/nvim/lua/plugins/none-ls.lua
Normal file
@@ -0,0 +1,75 @@
|
|||||||
|
return {
|
||||||
|
"nvimtools/none-ls.nvim",
|
||||||
|
config = function()
|
||||||
|
local null_ls = require("null-ls")
|
||||||
|
local helpers = require("null-ls.helpers")
|
||||||
|
-- syncronous formatting
|
||||||
|
local augroup = vim.api.nvim_create_augroup("LspFormatting", {})
|
||||||
|
|
||||||
|
local sources = {
|
||||||
|
null_ls.builtins.completion.luasnip,
|
||||||
|
-- null_ls.builtins.diagnostics.mypy,
|
||||||
|
null_ls.builtins.diagnostics.pydoclint,
|
||||||
|
null_ls.builtins.diagnostics.markdownlint,
|
||||||
|
null_ls.builtins.formatting.black,
|
||||||
|
null_ls.builtins.formatting.isort,
|
||||||
|
null_ls.builtins.formatting.stylua,
|
||||||
|
null_ls.builtins.formatting.markdownlint,
|
||||||
|
null_ls.builtins.formatting.prettier, -- handled by lsp server
|
||||||
|
null_ls.builtins.formatting.shfmt.with({
|
||||||
|
filetypes = { "sh", "bash" },
|
||||||
|
extra_args = { "-i", "0", "-ci", "-sr" },
|
||||||
|
}),
|
||||||
|
null_ls.builtins.formatting.gofmt,
|
||||||
|
null_ls.builtins.formatting.goimports,
|
||||||
|
null_ls.builtins.formatting.goimports_reviser,
|
||||||
|
null_ls.builtins.hover.printenv,
|
||||||
|
}
|
||||||
|
|
||||||
|
require("null-ls").setup({
|
||||||
|
border = "rounded",
|
||||||
|
cmd = { "nvim" },
|
||||||
|
debounce = 250,
|
||||||
|
debug = false,
|
||||||
|
default_timeout = 5000,
|
||||||
|
diagnostic_config = {
|
||||||
|
virtual_text = false,
|
||||||
|
signs = true,
|
||||||
|
underline = true,
|
||||||
|
float = { border = "rounded", source = true },
|
||||||
|
severity_sort = true,
|
||||||
|
},
|
||||||
|
-- diagnostics_format = "#{m}",
|
||||||
|
diagnostics_format = "[#{c}] #{m} (#{s})",
|
||||||
|
fallback_severity = vim.diagnostic.severity.ERROR,
|
||||||
|
log_level = "warn",
|
||||||
|
notify_format = "[null-ls] %s",
|
||||||
|
on_init = nil,
|
||||||
|
on_exit = nil,
|
||||||
|
root_dir = require("null-ls.utils").root_pattern(".null-ls-root", "Makefile", ".git"),
|
||||||
|
root_dir_async = nil,
|
||||||
|
should_attach = nil,
|
||||||
|
sources = sources,
|
||||||
|
temp_dir = nil,
|
||||||
|
update_in_insert = false,
|
||||||
|
on_attach = function(client, bufnr)
|
||||||
|
if client.supports_method("textDocument/formatting") then
|
||||||
|
vim.api.nvim_clear_autocmds({ group = augroup, buffer = bufnr })
|
||||||
|
vim.api.nvim_create_autocmd("BufWritePre", {
|
||||||
|
group = augroup,
|
||||||
|
buffer = bufnr,
|
||||||
|
callback = function()
|
||||||
|
vim.lsp.buf.format({
|
||||||
|
async = false,
|
||||||
|
bufnr = bufnr,
|
||||||
|
filter = function(client)
|
||||||
|
return client.name == "null-ls"
|
||||||
|
end,
|
||||||
|
})
|
||||||
|
end,
|
||||||
|
})
|
||||||
|
end
|
||||||
|
end,
|
||||||
|
})
|
||||||
|
end,
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user