Skip to content

Commit

Permalink
feat(mpv): inline function for autoprofile (#243)
Browse files Browse the repository at this point in the history
thanks to zewia
  • Loading branch information
Ravencentric authored Jan 20, 2024
1 parent cb3e095 commit 8570189
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/static/tutorials/mpv/portable_config/mpv.conf
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

0 comments on commit 8570189

Please sign in to comment.