CogentRedTester / mpv-sub-select

An advanced conditional subtitle track selector for mpv player
MIT License
89 stars 8 forks source link

Allow optional preferred terms #14

Closed SinTan1729 closed 2 years ago

SinTan1729 commented 2 years ago

In some files, there are more than one subtitle of the same language, and the subtitle with all the dialogues has a suffix (full). Is it possible to add it as an optional preferred term? Adding it as a whitelist term will select nothing when only one subtitle of that language is present.

CogentRedTester commented 2 years ago

Use multiple entries in the config file, give the first entry the whitelist items, and don't give them to the second. The script will then try to find a sub with the whitelist, and if it can't it'll fall back to the next entry.

SinTan1729 commented 2 years ago

I tried that before, but I didn't put the whitelist as an array, now putting as an array worked.