From 857018941d4cb240325f166975a82ea7241a8b97 Mon Sep 17 00:00:00 2001 From: Raventric <78981416+Ravencentric@users.noreply.github.com> Date: Sun, 21 Jan 2024 01:27:16 +0530 Subject: [PATCH] feat(mpv): inline function for autoprofile (#243) thanks to zewia --- docs/static/tutorials/mpv/portable_config/mpv.conf | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/static/tutorials/mpv/portable_config/mpv.conf b/docs/static/tutorials/mpv/portable_config/mpv.conf index 747b256c7..c37418a4b 100644 --- a/docs/static/tutorials/mpv/portable_config/mpv.conf +++ b/docs/static/tutorials/mpv/portable_config/mpv.conf @@ -23,10 +23,10 @@ screenshot-template="%F-%p-%n" slang=eng,en alang=jpn,ja -# Dub -# Uncomment this section to prefer English dub with subtitles for English dub +## Dub #slang=zxx,eng,en #alang=eng,en +#subs-with-matching-audio=forced ## Deband # Set deband to "no" as we only need to enable it for specific cases @@ -36,11 +36,11 @@ deband-grain=48 ## Auto profiles [crunchyroll] -profile-cond=filename:match("SubsPlease") or filename:match("Erai%-raws") +profile-cond=(function(a)for b,c in ipairs(a)do if filename:match(c)then return true end end end)({"SubsPlease","Erai%-raws"}) profile-restore=copy sub-ass-vsfilter-blur-compat=no [simulcast] -profile-cond=filename:match("SubsPlease") or filename:match("Erai%-raws") or filename:match("Tsundere%-Raws") or filename:match("%-VARYG") or filename:match("HorribleSubs") or filename:match("SubsPlus%+") +profile-cond=(function(a)for b,c in ipairs(a)do if filename:match(c)then return true end end end)({"SubsPlease","Erai%-raws","Tsundere%-Raws","%-VARYG","HorribleSubs","SubsPlus%+"}) profile-restore=copy deband=yes