Improves checking for whether a subtitle is full or partial
All checks were successful
KnarCraft/FFmpegConvert/pipeline/head This commit looks good
All checks were successful
KnarCraft/FFmpegConvert/pipeline/head This commit looks good
This commit is contained in:
parent
80a62cad23
commit
292409f5dc
@ -37,14 +37,9 @@ public class SubtitleStream extends StreamObject {
|
||||
return false;
|
||||
}
|
||||
String titleLowercase = getTitle().toLowerCase();
|
||||
return !(titleLowercase.contains("songs and signs") ||
|
||||
titleLowercase.contains("signs and songs") ||
|
||||
titleLowercase.contains("songs & signs") ||
|
||||
titleLowercase.contains("signs & songs") ||
|
||||
titleLowercase.contains("signs/song") ||
|
||||
titleLowercase.contains("songs/sign") ||
|
||||
titleLowercase.contains("[forced]") ||
|
||||
titleLowercase.contains("(forced)"));
|
||||
return !titleLowercase.matches("signs?[ &\\/a-z]+songs?") &&
|
||||
!titleLowercase.matches("songs?[ &\\/a-z]+signs?") &&
|
||||
!titleLowercase.matches("forced");
|
||||
}
|
||||
|
||||
public String getLanguage() {
|
||||
|
Loading…
Reference in New Issue
Block a user