From 5f0539c16a628db0571a447f398b590627bbde57 Mon Sep 17 00:00:00 2001 From: Alhaziel <46535975+lozioangie@users.noreply.github.com> Date: Sat, 16 Mar 2019 17:36:38 +0100 Subject: [PATCH] Autoselect lang for tvdb --- plugin.video.alfa/core/tvdb.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/plugin.video.alfa/core/tvdb.py b/plugin.video.alfa/core/tvdb.py index eb0fc035..9c274d8a 100755 --- a/plugin.video.alfa/core/tvdb.py +++ b/plugin.video.alfa/core/tvdb.py @@ -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',