mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-12-26 02:36:10 +00:00
Add setup RT
This commit is contained in:
parent
5d6e106ef3
commit
3dc72287b3
3 changed files with 31 additions and 10 deletions
|
@ -917,3 +917,7 @@ msgstr ""
|
||||||
msgctxt "#33187"
|
msgctxt "#33187"
|
||||||
msgid "Sync rotten tomatoes ratings"
|
msgid "Sync rotten tomatoes ratings"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
msgctxt "#33188"
|
||||||
|
msgid "Would you like to sync rotten tomatoes ratings?"
|
||||||
|
msgstr ""
|
||||||
|
|
|
@ -152,7 +152,7 @@ def reset():
|
||||||
xbmcvfs.delete(os.path.join(addon_data, "sync.json"))
|
xbmcvfs.delete(os.path.join(addon_data, "sync.json"))
|
||||||
|
|
||||||
settings('enableMusic.bool', False)
|
settings('enableMusic.bool', False)
|
||||||
settings('MinimumSetup.bool', False)
|
settings('MinimumSetup', "")
|
||||||
settings('MusicRescan.bool', False)
|
settings('MusicRescan.bool', False)
|
||||||
settings('SyncInstallRunDone.bool', False)
|
settings('SyncInstallRunDone.bool', False)
|
||||||
dialog("ok", heading="{emby}", line1=_(33088))
|
dialog("ok", heading="{emby}", line1=_(33088))
|
||||||
|
|
|
@ -6,7 +6,7 @@ import logging
|
||||||
|
|
||||||
import xbmc
|
import xbmc
|
||||||
|
|
||||||
from helper import _, settings, dialog, JSONRPC
|
from helper import _, settings, dialog, JSONRPC, compare_version
|
||||||
|
|
||||||
#################################################################################################
|
#################################################################################################
|
||||||
|
|
||||||
|
@ -65,17 +65,29 @@ class Setup(object):
|
||||||
|
|
||||||
def setup(self):
|
def setup(self):
|
||||||
|
|
||||||
minimum = "3.0.23"
|
minimum = "3.0.24"
|
||||||
|
cached = settings('MinimumSetup')
|
||||||
|
|
||||||
if settings('MinimumSetup') == minimum:
|
if cached == minimum:
|
||||||
return
|
return
|
||||||
|
|
||||||
|
if not cached:
|
||||||
|
|
||||||
self._is_mode()
|
self._is_mode()
|
||||||
LOG.info("Add-on playback: %s", settings('useDirectPaths') == "0")
|
LOG.info("Add-on playback: %s", settings('useDirectPaths') == "0")
|
||||||
self._is_artwork_caching()
|
self._is_artwork_caching()
|
||||||
LOG.info("Artwork caching: %s", settings('enableTextureCache.bool'))
|
LOG.info("Artwork caching: %s", settings('enableTextureCache.bool'))
|
||||||
self._is_empty_shows()
|
self._is_empty_shows()
|
||||||
LOG.info("Sync empty shows: %s", settings('syncEmptyShows.bool'))
|
LOG.info("Sync empty shows: %s", settings('syncEmptyShows.bool'))
|
||||||
|
self._is_rotten_tomatoes()
|
||||||
|
LOG.info("Sync rotten tomatoes: %s", settings('syncRottenTomatoes.bool'))
|
||||||
|
|
||||||
|
"""
|
||||||
|
if compare_version(cached or minimum, "3.0.24") <= 0:
|
||||||
|
|
||||||
|
self._is_rotten_tomatoes()
|
||||||
|
LOG.info("Sync rotten tomatoes: %s", settings('syncRottenTomatoes.bool'))
|
||||||
|
"""
|
||||||
|
|
||||||
# Setup completed
|
# Setup completed
|
||||||
settings('MinimumSetup', minimum)
|
settings('MinimumSetup', minimum)
|
||||||
|
@ -105,6 +117,11 @@ class Setup(object):
|
||||||
value = dialog("yesno", heading="{emby}", line1=_(33100))
|
value = dialog("yesno", heading="{emby}", line1=_(33100))
|
||||||
settings('syncEmptyShows.bool', value)
|
settings('syncEmptyShows.bool', value)
|
||||||
|
|
||||||
|
def _is_rotten_tomatoes(self):
|
||||||
|
|
||||||
|
value = dialog("yesno", heading="{emby}", line1=_(33188))
|
||||||
|
settings('syncRottenTomatoes.bool', value)
|
||||||
|
|
||||||
def _is_music(self):
|
def _is_music(self):
|
||||||
|
|
||||||
value = dialog("yesno", heading="{emby}", line1=_(33039))
|
value = dialog("yesno", heading="{emby}", line1=_(33039))
|
||||||
|
|
Loading…
Reference in a new issue