diff --git a/src/main/java/net/knarcraft/ffmpegconverter/streams/SubtitleStream.java b/src/main/java/net/knarcraft/ffmpegconverter/streams/SubtitleStream.java index 06fedc7..547cbdd 100644 --- a/src/main/java/net/knarcraft/ffmpegconverter/streams/SubtitleStream.java +++ b/src/main/java/net/knarcraft/ffmpegconverter/streams/SubtitleStream.java @@ -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() {