1
0
mirror of https://github.com/mitb-archive/filebot synced 2024-12-24 16:58:51 -05:00

* fine-tune subtitles exclusion logic

This commit is contained in:
Reinhard Pointner 2014-02-27 19:48:31 +00:00
parent 223c797de5
commit 70c22e2cdb
3 changed files with 5 additions and 3 deletions

View File

@ -125,10 +125,11 @@ public enum EpisodeMetrics implements SimilarityMetric {
} }
if (object instanceof Movie) { 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
} }
}), }),

View File

@ -127,7 +127,7 @@ public final class SubtitleUtilities {
continue; continue;
// ignore if we're sure that SxE is a negative match // 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; continue;
// ignore if it's not similar enough // ignore if it's not similar enough

View File

@ -41,6 +41,7 @@
^Download$ ^Download$
^Downloading$ ^Downloading$
^Downloads$ ^Downloads$
^Dropbox$
^Entertainment$ ^Entertainment$
^Episode$ ^Episode$
^Episodes$ ^Episodes$