1
0
mirror of https://github.com/mitb-archive/filebot synced 2024-11-10 19:35:15 -05:00
This commit is contained in:
Reinhard Pointner 2016-03-13 18:32:03 +00:00
parent fbde12d5f0
commit c101a59e69
3 changed files with 2 additions and 9 deletions

View File

@ -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) {

View File

@ -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);

View File

@ -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;