From ae5c5c5e3a7be3d4fb67d8162886bb3283fdfdb1 Mon Sep 17 00:00:00 2001 From: Reinhard Pointner Date: Mon, 11 Feb 2008 19:36:59 +0000 Subject: [PATCH] switched to using global logger --- .../filebot/ui/panel/sfv/ChecksumComputationTask.java | 2 +- .../ui/transferablepolicies/FileTransferablePolicy.java | 2 +- source/net/sourceforge/filebot/web/AnidbClient.java | 2 +- source/net/sourceforge/filebot/web/ImdbSearchEngine.java | 2 +- source/net/sourceforge/filebot/web/TVRageClient.java | 2 +- source/net/sourceforge/filebot/web/TvdotcomClient.java | 5 +++-- 6 files changed, 8 insertions(+), 7 deletions(-) diff --git a/source/net/sourceforge/filebot/ui/panel/sfv/ChecksumComputationTask.java b/source/net/sourceforge/filebot/ui/panel/sfv/ChecksumComputationTask.java index b6b16dc8..a37bfd87 100644 --- a/source/net/sourceforge/filebot/ui/panel/sfv/ChecksumComputationTask.java +++ b/source/net/sourceforge/filebot/ui/panel/sfv/ChecksumComputationTask.java @@ -12,7 +12,7 @@ import javax.swing.SwingWorker; public class ChecksumComputationTask extends SwingWorker { - private static final int CHUNK_SIZE = 20 * 1024; + private static final int CHUNK_SIZE = 32 * 1024; private File file; diff --git a/source/net/sourceforge/filebot/ui/transferablepolicies/FileTransferablePolicy.java b/source/net/sourceforge/filebot/ui/transferablepolicies/FileTransferablePolicy.java index 109b59c8..69a2888b 100644 --- a/source/net/sourceforge/filebot/ui/transferablepolicies/FileTransferablePolicy.java +++ b/source/net/sourceforge/filebot/ui/transferablepolicies/FileTransferablePolicy.java @@ -86,7 +86,7 @@ public abstract class FileTransferablePolicy extends TransferablePolicy { if (file.exists()) files.add(file); } catch (URISyntaxException e) { - Logger.getAnonymousLogger().log(Level.WARNING, "Invalid file url: " + line, e); + Logger.getLogger(Logger.GLOBAL_LOGGER_NAME).log(Level.WARNING, "Invalid file url: " + line, e); } } diff --git a/source/net/sourceforge/filebot/web/AnidbClient.java b/source/net/sourceforge/filebot/web/AnidbClient.java index f3bb1f1b..c0be8231 100644 --- a/source/net/sourceforge/filebot/web/AnidbClient.java +++ b/source/net/sourceforge/filebot/web/AnidbClient.java @@ -67,7 +67,7 @@ public class AnidbClient extends EpisodeListClient { cache.put(title, url); shows.add(title); } catch (MalformedURLException e) { - Logger.getAnonymousLogger().log(Level.WARNING, "Invalid href: " + href, e); + Logger.getLogger(Logger.GLOBAL_LOGGER_NAME).log(Level.WARNING, "Invalid href: " + href, e); } } } diff --git a/source/net/sourceforge/filebot/web/ImdbSearchEngine.java b/source/net/sourceforge/filebot/web/ImdbSearchEngine.java index 6d38c4eb..81a79e30 100644 --- a/source/net/sourceforge/filebot/web/ImdbSearchEngine.java +++ b/source/net/sourceforge/filebot/web/ImdbSearchEngine.java @@ -41,7 +41,7 @@ public class ImdbSearchEngine { try { movies.add(parseMovie(node)); } catch (Exception e) { - Logger.getAnonymousLogger().log(Level.WARNING, "Invalid movie node", e); + Logger.getLogger(Logger.GLOBAL_LOGGER_NAME).log(Level.WARNING, "Invalid movie node", e); } } diff --git a/source/net/sourceforge/filebot/web/TVRageClient.java b/source/net/sourceforge/filebot/web/TVRageClient.java index b4cab870..5fc400d3 100644 --- a/source/net/sourceforge/filebot/web/TVRageClient.java +++ b/source/net/sourceforge/filebot/web/TVRageClient.java @@ -59,7 +59,7 @@ public class TVRageClient extends EpisodeListClient { cache.put(title, url); shows.add(title); } catch (MalformedURLException e) { - Logger.getAnonymousLogger().log(Level.WARNING, "Invalid href: " + href, e); + Logger.getLogger(Logger.GLOBAL_LOGGER_NAME).log(Level.WARNING, "Invalid href: " + href, e); } } diff --git a/source/net/sourceforge/filebot/web/TvdotcomClient.java b/source/net/sourceforge/filebot/web/TvdotcomClient.java index 37fbe927..3349d3c4 100644 --- a/source/net/sourceforge/filebot/web/TvdotcomClient.java +++ b/source/net/sourceforge/filebot/web/TvdotcomClient.java @@ -63,7 +63,7 @@ public class TvdotcomClient extends EpisodeListClient { cache.put(title, url); shows.add(title); } catch (MalformedURLException e) { - Logger.getAnonymousLogger().log(Level.WARNING, "Invalid href: " + href, e); + Logger.getLogger(Logger.GLOBAL_LOGGER_NAME).log(Level.WARNING, "Invalid href: " + href, e); } } } @@ -118,7 +118,8 @@ public class TvdotcomClient extends EpisodeListClient { } - public URL getEpisodeListUrl(String showname, int season) { + @Override + public URL getEpisodeListUrl(String showname, int season) { try { String summaryFile = cache.get(showname).getFile();