Makes sure to catch a signs misspelling when looking for signs & songs
All checks were successful
KnarCraft/FFmpegConvert/pipeline/head This commit looks good

This commit is contained in:
Kristian Knarvik 2023-07-15 16:42:31 +02:00
parent 32ec50ba7d
commit a9ea1f796a

View File

@ -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.*");
}