Refactor Settings
This commit is contained in:
parent
5378ad3fff
commit
d3cfec58ea
|
@ -40,13 +40,10 @@ public final class Settings {
|
||||||
|
|
||||||
public static String getApiKey(String name) {
|
public static String getApiKey(String name) {
|
||||||
if (isAppStore()) {
|
if (isAppStore()) {
|
||||||
try {
|
return getApplicationProperty("com.apikey." + name);
|
||||||
return getApplicationProperty("apikey.appstore." + name);
|
} else {
|
||||||
} catch (Exception e) {
|
return getApplicationProperty("apikey." + name);
|
||||||
// use default value
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
return getApplicationProperty("apikey." + name);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public static boolean isUnixFS() {
|
public static boolean isUnixFS() {
|
||||||
|
|
|
@ -29,7 +29,7 @@ link.channel: https://www.filebot.net/channel.html
|
||||||
link.help: https://www.filebot.net/support.html
|
link.help: https://www.filebot.net/support.html
|
||||||
link.help.mas: https://www.filebot.net/mac/support.html
|
link.help.mas: https://www.filebot.net/mac/support.html
|
||||||
|
|
||||||
# api keys for webservices
|
# api keys
|
||||||
apikey.fanart.tv: 780b986b22c35e6f7a134a2f392c2deb
|
apikey.fanart.tv: 780b986b22c35e6f7a134a2f392c2deb
|
||||||
apikey.thetvdb: 694FAD89942D3827
|
apikey.thetvdb: 694FAD89942D3827
|
||||||
apikey.themoviedb: 66308fb6e3fd850dde4c7d21df2e8306
|
apikey.themoviedb: 66308fb6e3fd850dde4c7d21df2e8306
|
||||||
|
@ -38,11 +38,11 @@ apikey.acoustid: 0B3qZnQc
|
||||||
apikey.anidb: filebot
|
apikey.anidb: filebot
|
||||||
apikey.opensubtitles: FileBot
|
apikey.opensubtitles: FileBot
|
||||||
|
|
||||||
# api keys used by the appstore distribution
|
# api keys
|
||||||
apikey.appstore.fanart.tv: 780b986b22c35e6f7a134a2f392c2deb
|
com.apikey.fanart.tv: 780b986b22c35e6f7a134a2f392c2deb
|
||||||
apikey.appstore.thetvdb: 5F6E873A88CF70D9
|
com.apikey.thetvdb: 5F6E873A88CF70D9
|
||||||
apikey.appstore.themoviedb: 28bce8224bd3282a41bec4c5df528249
|
com.apikey.themoviedb: 28bce8224bd3282a41bec4c5df528249
|
||||||
apikey.appstore.omdb: 49d311ec
|
com.apikey.omdb: 49d311ec
|
||||||
apikey.appstore.acoustid: VCujaMw9
|
com.apikey.acoustid: VCujaMw9
|
||||||
apikey.appstore.anidb: filebotappstore
|
com.apikey.anidb: filebotappstore
|
||||||
apikey.appstore.opensubtitles: FileBot-AppStore
|
com.apikey.opensubtitles: FileBot-AppStore
|
||||||
|
|
Loading…
Reference in New Issue