1
0
mirror of https://github.com/mitb-archive/filebot synced 2024-11-15 13:55:03 -05:00
This commit is contained in:
Reinhard Pointner 2016-03-13 17:35:27 +00:00
parent ce848b9e21
commit b248b83dac
4 changed files with 7 additions and 10 deletions

View File

@ -23,7 +23,6 @@ import java.util.Locale;
import java.util.Map; import java.util.Map;
import java.util.Set; import java.util.Set;
import java.util.concurrent.TimeUnit; import java.util.concurrent.TimeUnit;
import java.util.logging.Level;
import java.util.regex.Matcher; import java.util.regex.Matcher;
import java.util.regex.Pattern; import java.util.regex.Pattern;
import java.util.stream.Collectors; import java.util.stream.Collectors;
@ -173,8 +172,7 @@ public class AnidbClient extends AbstractEpisodeListProvider {
// sanity check // sanity check
if (episodes.isEmpty()) { if (episodes.isEmpty()) {
// anime page xml doesn't work sometimes debug.fine(format("Failed to parse episode data: %s (%d): %s", anime, anime.getId(), url));
debug.log(Level.WARNING, String.format("Unable to parse episode data: %s (%d): %s", anime, anime.getAnimeId(), getXmlString(dom, false).split("\n", 2)[0].trim()));
} }
return new SeriesData(seriesInfo, episodes); return new SeriesData(seriesInfo, episodes);

View File

@ -96,7 +96,7 @@ public class TMDbClient implements MovieIdentificationService {
id = getDecimal(it, "id").intValue(); id = getDecimal(it, "id").intValue();
year = matchInteger(getString(it, "release_date")); // release date is often missing year = matchInteger(getString(it, "release_date")); // release date is often missing
} catch (Exception e) { } catch (Exception e) {
debug.warning(format("Missing data: release_date => %s", it)); debug.fine(format("Missing data: release_date => %s", it));
return null; return null;
} }

View File

@ -20,10 +20,12 @@ import java.util.Locale;
import java.util.Map; import java.util.Map;
import java.util.Map.Entry; import java.util.Map.Entry;
import java.util.Random; import java.util.Random;
import java.util.logging.Level;
import javax.swing.Icon; import javax.swing.Icon;
import org.w3c.dom.Document;
import org.w3c.dom.Node;
import net.filebot.Cache; import net.filebot.Cache;
import net.filebot.Cache.TypedCache; import net.filebot.Cache.TypedCache;
import net.filebot.CacheType; import net.filebot.CacheType;
@ -31,9 +33,6 @@ import net.filebot.ResourceManager;
import net.filebot.util.FileUtilities; import net.filebot.util.FileUtilities;
import net.filebot.web.TheTVDBClient.BannerDescriptor.BannerProperty; import net.filebot.web.TheTVDBClient.BannerDescriptor.BannerProperty;
import org.w3c.dom.Document;
import org.w3c.dom.Node;
public class TheTVDBClient extends AbstractEpisodeListProvider { public class TheTVDBClient extends AbstractEpisodeListProvider {
private final Map<MirrorType, String> mirrors = MirrorType.newMap(); private final Map<MirrorType, String> mirrors = MirrorType.newMap();
@ -106,7 +105,7 @@ public class TheTVDBClient extends AbstractEpisodeListProvider {
String seriesName = getTextContent("SeriesName", node); String seriesName = getTextContent("SeriesName", node);
if (seriesName.startsWith("**") && seriesName.endsWith("**")) { if (seriesName.startsWith("**") && seriesName.endsWith("**")) {
debug.log(Level.WARNING, String.format("Invalid series: %s [%d]", seriesName, sid)); debug.fine(format("Invalid series: %s [%d]", seriesName, sid));
continue; continue;
} }

View File

@ -20,7 +20,7 @@ import net.filebot.web.TMDbClient.MovieInfo;
public class TMDbClientTest { public class TMDbClientTest {
TMDbClient tmdb = new TMDbClient("66308fb6e3fd850dde4c7d21df2e8306"); static TMDbClient tmdb = new TMDbClient("66308fb6e3fd850dde4c7d21df2e8306");
@Test @Test
public void searchByName() throws Exception { public void searchByName() throws Exception {