Add optional rotten tomatoes option

This commit is contained in:
angelblue05 2018-12-02 01:37:54 -06:00
parent a4ba5ef712
commit 52192ce123
3 changed files with 8 additions and 0 deletions

View file

@ -913,3 +913,7 @@ msgstr ""
msgctxt "#33186" msgctxt "#33186"
msgid "The Kodi companion speeds up the start up sync. Other syncs are triggered by server events." msgid "The Kodi companion speeds up the start up sync. Other syncs are triggered by server events."
msgstr "" msgstr ""
msgctxt "#33187"
msgid "Sync rotten tomatoes ratings"
msgstr ""

View file

@ -118,6 +118,9 @@ def library_check():
''' '''
def decorator(func): def decorator(func):
def wrapper(self, item, *args, **kwargs): def wrapper(self, item, *args, **kwargs):
''' TODO: Rethink this one... songs and albums cannot be found by library. expensive.
'''
from database import get_sync from database import get_sync
if kwargs.get('library') is None: if kwargs.get('library') is None:

View file

@ -35,6 +35,7 @@
<setting label="30157" id="enableCoverArt" type="bool" default="true" /> <setting label="30157" id="enableCoverArt" type="bool" default="true" />
<setting label="33116" id="compressArt" type="bool" default="false" /> <setting label="33116" id="compressArt" type="bool" default="false" />
<setting label="30508" id="syncEmptyShows" type="bool" default="false" /> <setting label="30508" id="syncEmptyShows" type="bool" default="false" />
<setting label="33187" id="syncRottenTomatoes" type="bool" default="true" />
<setting id="enableMusic" visible="false" default="false" /> <setting id="enableMusic" visible="false" default="false" />
</category> </category>