Autoselect lang for tvdb

This commit is contained in:
Alhaziel
2019-03-16 17:36:38 +01:00
committed by mac12m99
parent 9a470ab653
commit 5f0539c16a

View File

@@ -19,8 +19,11 @@ from platformcode import platformtools
HOST = "https://api.thetvdb.com"
HOST_IMAGE = "http://thetvdb.com/banners/"
import xbmc, xbmcaddon
addon = xbmcaddon.Addon('metadata.tvdb.com')
TOKEN = config.get_setting("tvdb_token", default="")
DEFAULT_LANG = "es"
DEFAULT_LANG = addon.getSetting('language')
DEFAULT_HEADERS = {
'Content-Type': 'application/json',
'Accept': 'application/json, application/vnd.thetvdb.v2.1.1',