diff --git a/source/net/filebot/web/AnidbClient.java b/source/net/filebot/web/AnidbClient.java index b03f2442..5b72cb00 100644 --- a/source/net/filebot/web/AnidbClient.java +++ b/source/net/filebot/web/AnidbClient.java @@ -23,7 +23,6 @@ import java.util.Locale; import java.util.Map; import java.util.Set; import java.util.concurrent.TimeUnit; -import java.util.logging.Level; import java.util.regex.Matcher; import java.util.regex.Pattern; import java.util.stream.Collectors; @@ -173,8 +172,7 @@ public class AnidbClient extends AbstractEpisodeListProvider { // sanity check if (episodes.isEmpty()) { - // anime page xml doesn't work sometimes - 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())); + debug.fine(format("Failed to parse episode data: %s (%d): %s", anime, anime.getId(), url)); } return new SeriesData(seriesInfo, episodes); diff --git a/source/net/filebot/web/TMDbClient.java b/source/net/filebot/web/TMDbClient.java index 49605ea6..85f36973 100644 --- a/source/net/filebot/web/TMDbClient.java +++ b/source/net/filebot/web/TMDbClient.java @@ -96,7 +96,7 @@ public class TMDbClient implements MovieIdentificationService { id = getDecimal(it, "id").intValue(); year = matchInteger(getString(it, "release_date")); // release date is often missing } catch (Exception e) { - debug.warning(format("Missing data: release_date => %s", it)); + debug.fine(format("Missing data: release_date => %s", it)); return null; } diff --git a/source/net/filebot/web/TheTVDBClient.java b/source/net/filebot/web/TheTVDBClient.java index 9d63890f..3931183e 100644 --- a/source/net/filebot/web/TheTVDBClient.java +++ b/source/net/filebot/web/TheTVDBClient.java @@ -20,10 +20,12 @@ import java.util.Locale; import java.util.Map; import java.util.Map.Entry; import java.util.Random; -import java.util.logging.Level; import javax.swing.Icon; +import org.w3c.dom.Document; +import org.w3c.dom.Node; + import net.filebot.Cache; import net.filebot.Cache.TypedCache; import net.filebot.CacheType; @@ -31,9 +33,6 @@ import net.filebot.ResourceManager; import net.filebot.util.FileUtilities; import net.filebot.web.TheTVDBClient.BannerDescriptor.BannerProperty; -import org.w3c.dom.Document; -import org.w3c.dom.Node; - public class TheTVDBClient extends AbstractEpisodeListProvider { private final Map mirrors = MirrorType.newMap(); @@ -106,7 +105,7 @@ public class TheTVDBClient extends AbstractEpisodeListProvider { String seriesName = getTextContent("SeriesName", node); 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; } diff --git a/test/net/filebot/web/TMDbClientTest.java b/test/net/filebot/web/TMDbClientTest.java index 0f94768b..543719c1 100644 --- a/test/net/filebot/web/TMDbClientTest.java +++ b/test/net/filebot/web/TMDbClientTest.java @@ -20,7 +20,7 @@ import net.filebot.web.TMDbClient.MovieInfo; public class TMDbClientTest { - TMDbClient tmdb = new TMDbClient("66308fb6e3fd850dde4c7d21df2e8306"); + static TMDbClient tmdb = new TMDbClient("66308fb6e3fd850dde4c7d21df2e8306"); @Test public void searchByName() throws Exception {