diff --git a/lib/provider/fanarttv.py b/lib/provider/fanarttv.py index a40181c5..26906291 100644 --- a/lib/provider/fanarttv.py +++ b/lib/provider/fanarttv.py @@ -33,6 +33,10 @@ API_KEY = '586118be1ac673f74963cc284d46bd8e' API_URL_TV = 'http://webservice.fanart.tv/v3/tv/%s?api_key=%s' API_URL_MOVIE = 'http://webservice.fanart.tv/v3/movies/%s?api_key=%s' +CLIENT_KEY = setting['client_key'] +if CLIENT_KEY: + API_URL_TV = API_URL_TV + "&client_key=" + CLIENT_KEY + API_URL_MOVIE = API_URL_MOVIE + "&client_key=" + CLIENT_KEY IMAGE_TYPES_MOVIES = ['clearlogo', 'clearart', diff --git a/resources/language/Chinese (Simple)/strings.po b/resources/language/Chinese (Simple)/strings.po index 5eca8ed0..f5737d90 100644 --- a/resources/language/Chinese (Simple)/strings.po +++ b/resources/language/Chinese (Simple)/strings.po @@ -176,6 +176,10 @@ msgctxt "#32040" msgid "-" msgstr "-" +msgctxt "#32041" +msgid "Personal API key for fanart.tv" +msgstr "fanart.tv 的个人 API 密钥" + msgctxt "#32051" msgid "Limit Artwork" msgstr "限制艺术图片" diff --git a/resources/language/English/strings.po b/resources/language/English/strings.po index 222cdeea..ed99d78a 100644 --- a/resources/language/English/strings.po +++ b/resources/language/English/strings.po @@ -180,6 +180,10 @@ msgctxt "#32040" msgid "-" msgstr "" +msgctxt "#32041" +msgid "Personal API key for fanart.tv" +msgstr "" + #empty strings from id 32041 to 32050 #Add-on settings: Limit section id=32051 to 32060 diff --git a/resources/settings.xml b/resources/settings.xml index 2a7d4140..6affac3b 100644 --- a/resources/settings.xml +++ b/resources/settings.xml @@ -18,6 +18,7 @@ --> +