expand signs and songs blacklist slightly

This commit is contained in:
xenofem 2025-01-19 00:08:55 -05:00
parent 088856fff9
commit 969916326e

View file

@ -57,7 +57,9 @@
home-manager.sharedModules = [ ({ config, ... }: { home-manager.sharedModules = [ ({ config, ... }: {
config = lib.mkIf config.programs.mpv.enable { 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: # English audio:
# 1. English signs/songs subs # 1. English signs/songs subs
# 2. Forced subs # 2. Forced subs
@ -65,7 +67,7 @@
{ {
alang = "eng?"; alang = "eng?";
slang = "eng?"; slang = "eng?";
whitelist = [ "sign" "song" ]; whitelist = signs;
} }
{ {
alang = "eng?"; alang = "eng?";
@ -89,36 +91,36 @@
{ {
alang = "*"; alang = "*";
slang = "eng?"; 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))"; condition = "not sub.forced and ((audio.default and sub.default) or (not audio.default and not sub.default))";
} }
{ {
alang = "*"; alang = "*";
slang = "eng?"; slang = "eng?";
blacklist = [ "sign" "song" ]; blacklist = signs;
condition = "not sub.forced"; condition = "not sub.forced";
} }
{ {
alang = "*"; alang = "*";
slang = "eng?"; slang = "eng?";
blacklist = [ "sign" "song" ]; blacklist = signs;
} }
{ {
alang = "*"; alang = "*";
slang = "und"; 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))"; condition = "not sub.forced and ((audio.default and sub.default) or (not audio.default and not sub.default))";
} }
{ {
alang = "*"; alang = "*";
slang = "und"; slang = "und";
blacklist = [ "sign" "song" ]; blacklist = signs;
condition = "not sub.forced"; condition = "not sub.forced";
} }
{ {
alang = "*"; alang = "*";
slang = "und"; slang = "und";
blacklist = [ "sign" "song" ]; blacklist = signs;
} }
{ {
alang = "*"; alang = "*";