mirror of
https://github.com/mitb-archive/filebot
synced 2024-12-24 08:48:51 -05:00
* fine-tune subtitles exclusion logic
This commit is contained in:
parent
223c797de5
commit
70c22e2cdb
@ -125,10 +125,11 @@ public enum EpisodeMetrics implements SimilarityMetric {
|
||||
}
|
||||
|
||||
if (object instanceof Movie) {
|
||||
object = ((Movie) object).getName();
|
||||
return normalizeObject(((Movie) object).getName());
|
||||
}
|
||||
|
||||
return normalizeObject(object);
|
||||
String s = normalizeObject(object);
|
||||
return s.length() >= 4 ? s : null; // only consider long enough strings to avoid false matches
|
||||
}
|
||||
}),
|
||||
|
||||
|
@ -127,7 +127,7 @@ public final class SubtitleUtilities {
|
||||
continue;
|
||||
|
||||
// ignore if we're sure that SxE is a negative match
|
||||
if (isEpisode(it.getName(), true) && isEpisode(file.getPath(), true) && EpisodeMetrics.EpisodeFunnel.getSimilarity(file, it) < 1)
|
||||
if ((isEpisode(it.getName(), true) || isEpisode(file.getPath(), true)) && EpisodeMetrics.EpisodeIdentifier.getSimilarity(file, it) < 1)
|
||||
continue;
|
||||
|
||||
// ignore if it's not similar enough
|
||||
|
@ -41,6 +41,7 @@
|
||||
^Download$
|
||||
^Downloading$
|
||||
^Downloads$
|
||||
^Dropbox$
|
||||
^Entertainment$
|
||||
^Episode$
|
||||
^Episodes$
|
||||
|
Loading…
Reference in New Issue
Block a user