mirror of
https://github.com/mitb-archive/filebot
synced 2024-11-16 06:15:02 -05:00
* clean up
This commit is contained in:
parent
c227ec4bd9
commit
a9969668cc
@ -194,11 +194,9 @@ public enum EpisodeMetrics implements SimilarityMetric {
|
|||||||
|
|
||||||
protected String[] normalize(Object[] objects) {
|
protected String[] normalize(Object[] objects) {
|
||||||
String[] names = new String[objects.length];
|
String[] names = new String[objects.length];
|
||||||
|
|
||||||
for (int i = 0; i < objects.length; i++) {
|
for (int i = 0; i < objects.length; i++) {
|
||||||
names[i] = normalizeObject(objects[i]).replaceAll("\\s", "");
|
names[i] = normalizeObject(objects[i]).replaceAll("\\s", "");
|
||||||
}
|
}
|
||||||
|
|
||||||
return names;
|
return names;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -208,8 +206,7 @@ public enum EpisodeMetrics implements SimilarityMetric {
|
|||||||
LinkedHashSet<String> set = new LinkedHashSet<String>(4);
|
LinkedHashSet<String> set = new LinkedHashSet<String>(4);
|
||||||
set.add(removeTrailingBrackets(episode.getSeriesName()));
|
set.add(removeTrailingBrackets(episode.getSeriesName()));
|
||||||
set.add(removeTrailingBrackets(episode.getTitle()));
|
set.add(removeTrailingBrackets(episode.getTitle()));
|
||||||
set.add(removeTrailingBrackets(episode.getSeries().getName()));
|
for (String it : episode.getSeries().getNames()) {
|
||||||
for (String it : episode.getSeries().getAliasNames()) {
|
|
||||||
set.add(removeTrailingBrackets(it));
|
set.add(removeTrailingBrackets(it));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user