Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add Personal API key support for fanart.tv #89

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions lib/provider/fanarttv.py
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
4 changes: 4 additions & 0 deletions resources/language/Chinese (Simple)/strings.po
Original file line number Diff line number Diff line change
Expand Up @@ -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 "限制艺术图片"
Expand Down
4 changes: 4 additions & 0 deletions resources/language/English/strings.po
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
1 change: 1 addition & 0 deletions resources/settings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
-->
<setting label="32039" type="action" action="RunScript($CWD/lib/viewer.py, downloadreport)" />
<setting type="sep" />
<setting label="32041" type="text" id="client_key"/>
</category>

<!-- Plugin settings: Limit section -->
Expand Down