From 674f670dee591ba4b400e55c88be01e9ba9ee8e0 Mon Sep 17 00:00:00 2001 From: tomkat83 Date: Fri, 29 Apr 2016 13:32:25 +0200 Subject: [PATCH] Move API keys to settings file --- resources/lib/PlexAPI.py | 4 ++-- resources/settings.xml | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/resources/lib/PlexAPI.py b/resources/lib/PlexAPI.py index 20b57a8c..f79ae3fd 100644 --- a/resources/lib/PlexAPI.py +++ b/resources/lib/PlexAPI.py @@ -1892,7 +1892,7 @@ class API(): self.logMsg('Plex did not provide ID for IMDB or TVDB. Start lookup ' 'process', 1) KODILANGUAGE = xbmc.getLanguage(xbmc.ISO_639_1) - apiKey = "ae06df54334aa653354e9a010f4b81cb" + apiKey = utils.settings('themoviedbAPIKey') if media_type == 'show': media_type = 'tv' title = item.get('title', '') @@ -2024,7 +2024,7 @@ class API(): """ item = self.item.attrib KODILANGUAGE = xbmc.getLanguage(xbmc.ISO_639_1) - api_key = "639191cb0774661597f28a47e7e2bad5" + api_key = utils.settings('FanArtTVAPIKey') typus = item.get('type') if typus == 'show': typus = 'tv' diff --git a/resources/settings.xml b/resources/settings.xml index 1ba17adf..191c9103 100644 --- a/resources/settings.xml +++ b/resources/settings.xml @@ -67,6 +67,8 @@ + +