From a9ea1f796a8a16b7039a6c5ec304fa5d8d4a652a Mon Sep 17 00:00:00 2001 From: EpicKnarvik97 Date: Sat, 15 Jul 2023 16:42:31 +0200 Subject: [PATCH] Makes sure to catch a signs misspelling when looking for signs & songs --- .../net/knarcraft/ffmpegconverter/streams/SubtitleStream.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/net/knarcraft/ffmpegconverter/streams/SubtitleStream.java b/src/main/java/net/knarcraft/ffmpegconverter/streams/SubtitleStream.java index ce6f492..cbe61d3 100644 --- a/src/main/java/net/knarcraft/ffmpegconverter/streams/SubtitleStream.java +++ b/src/main/java/net/knarcraft/ffmpegconverter/streams/SubtitleStream.java @@ -88,8 +88,8 @@ public class SubtitleStream extends AbstractStream implements StreamObject { return false; } String titleLowercase = getTitle().toLowerCase(); - return !titleLowercase.matches(".*signs?[ &/a-z]+songs?.*") && - !titleLowercase.matches(".*songs?[ &/a-z]+signs?.*") && + return !titleLowercase.matches(".*si(ng|gn)s?[ &/a-z]+songs?.*") && + !titleLowercase.matches(".*songs?[ &/a-z]+si(gn|ng)s?.*") && !titleLowercase.matches(".*forced.*") && !titleLowercase.matches(".*s&s.*"); }