diff --git a/python/scraper.py b/python/scraper.py index 8d72b60a..67188cf0 100644 --- a/python/scraper.py +++ b/python/scraper.py @@ -83,15 +83,17 @@ def get_details(input_uniqueids, handle, settings): log(header + ': ' + details['error'], xbmc.LOGWARNING) return False - imdbinfo = get_imdb_details(details['uniqueids']) - if 'error' in imdbinfo: - header = "The Movie Database Python error with website IMDB" - log(header + ': ' + imdbinfo['error'], xbmc.LOGWARNING) - else: - details = combine_scraped_details_info_and_ratings(details, imdbinfo) + if settings.getSettingString('RatingS') == 'IMDb' or settings.getSettingBool('imdbanyway'): + imdbinfo = get_imdb_details(details['uniqueids']) + if 'error' in imdbinfo: + header = "The Movie Database Python error with website IMDB" + log(header + ': ' + imdbinfo['error'], xbmc.LOGWARNING) + else: + details = combine_scraped_details_info_and_ratings(details, imdbinfo) - traktinfo = get_trakt_ratinginfo(details['uniqueids']) - details = combine_scraped_details_info_and_ratings(details, traktinfo) + if settings.getSettingString('RatingS') == 'Trakt' or settings.getSettingBool('traktanyway'): + traktinfo = get_trakt_ratinginfo(details['uniqueids']) + details = combine_scraped_details_info_and_ratings(details, traktinfo) details = configure_scraped_details(details, settings) diff --git a/resources/language/resource.language.en_gb/strings.po b/resources/language/resource.language.en_gb/strings.po index 5aa1a51d..67b74ef7 100644 --- a/resources/language/resource.language.en_gb/strings.po +++ b/resources/language/resource.language.en_gb/strings.po @@ -55,3 +55,7 @@ msgstr "" msgctxt "#30009" msgid "Add multiple studios" msgstr "" + +msgctxt "#30010" +msgid "Add also Trakt.tv ratings" +msgstr "" diff --git a/resources/language/resource.language.en_nz/strings.po b/resources/language/resource.language.en_nz/strings.po index 5aa1a51d..67b74ef7 100644 --- a/resources/language/resource.language.en_nz/strings.po +++ b/resources/language/resource.language.en_nz/strings.po @@ -55,3 +55,7 @@ msgstr "" msgctxt "#30009" msgid "Add multiple studios" msgstr "" + +msgctxt "#30010" +msgid "Add also Trakt.tv ratings" +msgstr "" diff --git a/resources/language/resource.language.en_us/strings.po b/resources/language/resource.language.en_us/strings.po index 5aa1a51d..67b74ef7 100644 --- a/resources/language/resource.language.en_us/strings.po +++ b/resources/language/resource.language.en_us/strings.po @@ -55,3 +55,7 @@ msgstr "" msgctxt "#30009" msgid "Add multiple studios" msgstr "" + +msgctxt "#30010" +msgid "Add also Trakt.tv ratings" +msgstr "" diff --git a/resources/settings.xml b/resources/settings.xml index 3682c9e3..2fd2e3b0 100644 --- a/resources/settings.xml +++ b/resources/settings.xml @@ -7,6 +7,8 @@ + +