Move API keys to settings file
This commit is contained in:
parent
8d5f71dd6a
commit
674f670dee
2 changed files with 4 additions and 2 deletions
|
@ -1892,7 +1892,7 @@ class API():
|
||||||
self.logMsg('Plex did not provide ID for IMDB or TVDB. Start lookup '
|
self.logMsg('Plex did not provide ID for IMDB or TVDB. Start lookup '
|
||||||
'process', 1)
|
'process', 1)
|
||||||
KODILANGUAGE = xbmc.getLanguage(xbmc.ISO_639_1)
|
KODILANGUAGE = xbmc.getLanguage(xbmc.ISO_639_1)
|
||||||
apiKey = "ae06df54334aa653354e9a010f4b81cb"
|
apiKey = utils.settings('themoviedbAPIKey')
|
||||||
if media_type == 'show':
|
if media_type == 'show':
|
||||||
media_type = 'tv'
|
media_type = 'tv'
|
||||||
title = item.get('title', '')
|
title = item.get('title', '')
|
||||||
|
@ -2024,7 +2024,7 @@ class API():
|
||||||
"""
|
"""
|
||||||
item = self.item.attrib
|
item = self.item.attrib
|
||||||
KODILANGUAGE = xbmc.getLanguage(xbmc.ISO_639_1)
|
KODILANGUAGE = xbmc.getLanguage(xbmc.ISO_639_1)
|
||||||
api_key = "639191cb0774661597f28a47e7e2bad5"
|
api_key = utils.settings('FanArtTVAPIKey')
|
||||||
typus = item.get('type')
|
typus = item.get('type')
|
||||||
if typus == 'show':
|
if typus == 'show':
|
||||||
typus = 'tv'
|
typus = 'tv'
|
||||||
|
|
|
@ -67,6 +67,8 @@
|
||||||
<setting id="kodiplextimeoffset" type="number" label="Time difference in seconds (Koditime - Plextime)" default="0" visible="false" option="int" />
|
<setting id="kodiplextimeoffset" type="number" label="Time difference in seconds (Koditime - Plextime)" default="0" visible="false" option="int" />
|
||||||
<setting id="enableUpdateSongRating" type="bool" label="30526" default="false" visible="false" />
|
<setting id="enableUpdateSongRating" type="bool" label="30526" default="false" visible="false" />
|
||||||
<setting id="emby_pathverified" type="bool" default="false" visible="false" /> <!-- If 'false': one single warning message pops up if PKC cannot verify direct paths -->
|
<setting id="emby_pathverified" type="bool" default="false" visible="false" /> <!-- If 'false': one single warning message pops up if PKC cannot verify direct paths -->
|
||||||
|
<setting id="themoviedbAPIKey" type="text" default="ae06df54334aa653354e9a010f4b81cb" visible="false"/>
|
||||||
|
<setting id="FanArtTVAPIKey" type="text" default="639191cb0774661597f28a47e7e2bad5" visible="false"/>
|
||||||
</category>
|
</category>
|
||||||
|
|
||||||
<category label="39057"><!-- Customize Paths -->
|
<category label="39057"><!-- Customize Paths -->
|
||||||
|
|
Loading…
Reference in a new issue