From 04f5a627495182a1b81fb4d9ed1a69fc83429911 Mon Sep 17 00:00:00 2001 From: Reinhard Pointner Date: Wed, 24 May 2017 19:25:00 +0800 Subject: [PATCH] Add support for OMDb API key --- source/net/filebot/Settings.java | 8 +++----- source/net/filebot/Settings.properties | 2 ++ 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/source/net/filebot/Settings.java b/source/net/filebot/Settings.java index 1fa9b2b1..982f9570 100644 --- a/source/net/filebot/Settings.java +++ b/source/net/filebot/Settings.java @@ -3,7 +3,6 @@ package net.filebot; import static net.filebot.Logging.*; import java.util.Locale; -import java.util.MissingResourceException; import java.util.ResourceBundle; import java.util.logging.Level; import java.util.prefs.BackingStoreException; @@ -40,15 +39,14 @@ public final class Settings { } public static String getApiKey(String name) { - ResourceBundle bundle = ResourceBundle.getBundle(Settings.class.getName(), Locale.ROOT); if (isAppStore()) { try { - return bundle.getString("apikey.appstore." + name); - } catch (MissingResourceException e) { + return getApplicationProperty("apikey.appstore." + name); + } catch (Exception e) { // use default value } } - return bundle.getString("apikey." + name); + return getApplicationProperty("apikey." + name); } public static boolean isUnixFS() { diff --git a/source/net/filebot/Settings.properties b/source/net/filebot/Settings.properties index 35887dd8..03f0008c 100644 --- a/source/net/filebot/Settings.properties +++ b/source/net/filebot/Settings.properties @@ -39,8 +39,10 @@ apikey.anidb: filebot apikey.opensubtitles: FileBot # api keys used by the appstore distribution +apikey.appstore.fanart.tv: 780b986b22c35e6f7a134a2f392c2deb apikey.appstore.thetvdb: 5F6E873A88CF70D9 apikey.appstore.themoviedb: 28bce8224bd3282a41bec4c5df528249 +apikey.appstore.omdb: 49d311ec apikey.appstore.acoustid: VCujaMw9 apikey.appstore.anidb: filebotappstore apikey.appstore.opensubtitles: FileBot-AppStore