mirror of
https://github.com/mitb-archive/filebot
synced 2025-01-11 05:48:01 -05:00
Refactor
This commit is contained in:
parent
fbde12d5f0
commit
c101a59e69
@ -326,13 +326,7 @@ public enum EpisodeMetrics implements SimilarityMetric {
|
||||
}
|
||||
|
||||
protected String[] getNormalizedEffectiveIdentifiers(Object object) {
|
||||
List<?> identifiers = getEffectiveIdentifiers(object);
|
||||
String[] names = new String[identifiers.size()];
|
||||
|
||||
for (int i = 0; i < names.length; i++) {
|
||||
names[i] = normalizeObject(identifiers.get(i));
|
||||
}
|
||||
return names;
|
||||
return getEffectiveIdentifiers(object).stream().map(EpisodeMetrics::normalizeObject).toArray(String[]::new);
|
||||
}
|
||||
|
||||
protected List<?> getEffectiveIdentifiers(Object object) {
|
||||
|
@ -172,7 +172,7 @@ public class AnidbClient extends AbstractEpisodeListProvider {
|
||||
|
||||
// sanity check
|
||||
if (episodes.isEmpty()) {
|
||||
debug.fine(format("Failed to parse episode data: %s (%d): %s", anime, anime.getId(), url));
|
||||
debug.fine(format("No episode data: %s (%d) => %s", anime, anime.getId(), url));
|
||||
}
|
||||
|
||||
return new SeriesData(seriesInfo, episodes);
|
||||
|
@ -9,7 +9,6 @@ import java.util.List;
|
||||
|
||||
import org.junit.Test;
|
||||
|
||||
import net.filebot.media.MediaDetection;
|
||||
import net.filebot.web.Episode;
|
||||
import net.filebot.web.SimpleDate;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user