-
Notifications
You must be signed in to change notification settings - Fork 8
Example Configs
CogentRedTester edited this page Feb 20, 2023
·
2 revisions
In the following examples you can replace eng?
with your native language of choice.
According to the mpv manual:
Different container formats employ different language codes. DVDs use ISO 639-1 two-letter language codes, Matroska, MPEG-TS and NUT use ISO 639-2 three-letter language codes, while OGM uses a free-form identifier.
Wikipedia has a decent list of language codes.
[
{
"alang": "eng?",
"slang": "no"
},
{
"alang": "*",
"slang": [ "eng?", "und" ]
}
]
[
{
"alang": ["eng?", "und"],
"slang": ["eng?", "und"],
"condition": "sub.forced"
}
]
[
{
"alang": ["jpn", "ja"],
"slang": [ "eng?", "und" ],
"blacklist": [ "sign" ]
},
{
"alang": "eng?",
"slang": [ "eng?", "und" ],
"whitelist": [ "sign", "song" ]
}
]
The important part is the condition
and inherit
values.
You need to repeat these for any other preferences.
[
{
"alang": "*",
"slang": "eng?",
"condition": "sub.codec == 'ass'"
},
{
"inherit": "^",
"condition": "sub.codec ~= 'ass'"
}
]
The important part is the condition
and inherit
values.
You need to repeat these for any other preferences.
[
{
"alang": "*",
"slang": "eng?",
"condition": "sub.external"
},
{
"inherit": "^",
"condition": "not sub.external"
}
]
The important part is the condition
and inherit
values.
You need to repeat these for any other preferences.
[
{
"alang": "*",
"slang": "eng?",
"condition": "sub.external and sub.codec == 'ass'"
},
{
"inherit": "^",
"condition": "sub.external and sub.codec ~= 'ass'"
},
{
"inherit": "^",
"condition": "sub.codec == 'ass'"
},
{
"inherit": "^",
"condition": "sub.codec ~= 'ass'"
}
]