mirror of
https://github.com/RatzzFatzz/MKVAudioSubtitleChanger.git
synced 2026-02-11 10:05:58 +01:00
Improve subtitle selection
This commit is contained in:
@@ -42,6 +42,7 @@ public class Config {
|
||||
private Set<String> forcedKeywords = new HashSet<>(Arrays.asList("forced", "signs", "songs"));
|
||||
private Set<String> commentaryKeywords = new HashSet<>(Arrays.asList("commentary", "director"));
|
||||
private Set<String> excludedDirectories = new HashSet<>();
|
||||
private Set<String> preferredSubtitles = new HashSet<>(Arrays.asList("unstyled"));
|
||||
|
||||
private List<AttributeConfig> attributeConfig;
|
||||
|
||||
|
||||
@@ -142,7 +142,7 @@ public abstract class ConfigValidator<FieldType> {
|
||||
|
||||
protected Predicate<Method> containsGetterOf(ConfigProperty property) {
|
||||
return method -> StringUtils.startsWith(method.getName(), "get")
|
||||
&& StringUtils.containsIgnoreCase(method.getName(), property.prop().replace("-", ""));
|
||||
&& StringUtils.equalsIgnoreCase(method.getName().replace("get", ""), property.prop().replace("-", ""));
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user