expand signs and songs blacklist slightly
This commit is contained in:
parent
088856fff9
commit
969916326e
18
flake.nix
18
flake.nix
|
@ -57,7 +57,9 @@
|
|||
|
||||
home-manager.sharedModules = [ ({ config, ... }: {
|
||||
config = lib.mkIf config.programs.mpv.enable {
|
||||
xdg.configFile."mpv/script-opts/sub-select.json".text = builtins.toJSON [
|
||||
xdg.configFile."mpv/script-opts/sub-select.json".text = let
|
||||
signs = [ "sign" "song" "s&s" ];
|
||||
in builtins.toJSON [
|
||||
# English audio:
|
||||
# 1. English signs/songs subs
|
||||
# 2. Forced subs
|
||||
|
@ -65,7 +67,7 @@
|
|||
{
|
||||
alang = "eng?";
|
||||
slang = "eng?";
|
||||
whitelist = [ "sign" "song" ];
|
||||
whitelist = signs;
|
||||
}
|
||||
{
|
||||
alang = "eng?";
|
||||
|
@ -89,36 +91,36 @@
|
|||
{
|
||||
alang = "*";
|
||||
slang = "eng?";
|
||||
blacklist = [ "sign" "song" ];
|
||||
blacklist = signs;
|
||||
condition = "not sub.forced and ((audio.default and sub.default) or (not audio.default and not sub.default))";
|
||||
}
|
||||
{
|
||||
alang = "*";
|
||||
slang = "eng?";
|
||||
blacklist = [ "sign" "song" ];
|
||||
blacklist = signs;
|
||||
condition = "not sub.forced";
|
||||
}
|
||||
{
|
||||
alang = "*";
|
||||
slang = "eng?";
|
||||
blacklist = [ "sign" "song" ];
|
||||
blacklist = signs;
|
||||
}
|
||||
{
|
||||
alang = "*";
|
||||
slang = "und";
|
||||
blacklist = [ "sign" "song" ];
|
||||
blacklist = signs;
|
||||
condition = "not sub.forced and ((audio.default and sub.default) or (not audio.default and not sub.default))";
|
||||
}
|
||||
{
|
||||
alang = "*";
|
||||
slang = "und";
|
||||
blacklist = [ "sign" "song" ];
|
||||
blacklist = signs;
|
||||
condition = "not sub.forced";
|
||||
}
|
||||
{
|
||||
alang = "*";
|
||||
slang = "und";
|
||||
blacklist = [ "sign" "song" ];
|
||||
blacklist = signs;
|
||||
}
|
||||
{
|
||||
alang = "*";
|
||||
|
|
Loading…
Reference in a new issue