mirror of
https://github.com/mitb-archive/filebot
synced 2024-11-10 19:35:15 -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) {
|
protected String[] getNormalizedEffectiveIdentifiers(Object object) {
|
||||||
List<?> identifiers = getEffectiveIdentifiers(object);
|
return getEffectiveIdentifiers(object).stream().map(EpisodeMetrics::normalizeObject).toArray(String[]::new);
|
||||||
String[] names = new String[identifiers.size()];
|
|
||||||
|
|
||||||
for (int i = 0; i < names.length; i++) {
|
|
||||||
names[i] = normalizeObject(identifiers.get(i));
|
|
||||||
}
|
|
||||||
return names;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
protected List<?> getEffectiveIdentifiers(Object object) {
|
protected List<?> getEffectiveIdentifiers(Object object) {
|
||||||
|
@ -172,7 +172,7 @@ public class AnidbClient extends AbstractEpisodeListProvider {
|
|||||||
|
|
||||||
// sanity check
|
// sanity check
|
||||||
if (episodes.isEmpty()) {
|
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);
|
return new SeriesData(seriesInfo, episodes);
|
||||||
|
@ -9,7 +9,6 @@ import java.util.List;
|
|||||||
|
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
|
|
||||||
import net.filebot.media.MediaDetection;
|
|
||||||
import net.filebot.web.Episode;
|
import net.filebot.web.Episode;
|
||||||
import net.filebot.web.SimpleDate;
|
import net.filebot.web.SimpleDate;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user