Remove automatic object updates

This commit is contained in:
Claus Vium 2019-02-02 21:26:29 +01:00
parent 5f720da986
commit 5fba6555a8
9 changed files with 1 additions and 80 deletions

View file

@ -911,10 +911,6 @@ msgctxt "#33160"
msgid "To avoid errors, please update Jellyfin for Kodi to version: "
msgstr "Um Fehler zu vermeiden update bitte 'Jellyfin for Kodi' zur Version:"
msgctxt "#33161"
msgid "Check for updates"
msgstr "Nach Updates suchen"
msgctxt "#33162"
msgid "Reset the music library?"
msgstr "Musik Datenbank zurücksetzen?"

View file

@ -802,10 +802,6 @@ msgctxt "#33160"
msgid "To avoid errors, please update Jellyfin for Kodi to version: "
msgstr ""
msgctxt "#33161"
msgid "Check for updates"
msgstr ""
msgctxt "#33162"
msgid "Reset the music library?"
msgstr ""

View file

@ -914,10 +914,6 @@ msgstr ""
"Pour éviter les erreurs, veuillez mettre à jour la version d'Jellyfin pour Kodi "
": "
msgctxt "#33161"
msgid "Check for updates"
msgstr "Rechercher des mises à jour"
msgctxt "#33162"
msgid "Reset the music library?"
msgstr "Réinitialiser la médiathèque musicale ?"

View file

@ -907,10 +907,6 @@ msgctxt "#33160"
msgid "To avoid errors, please update Jellyfin for Kodi to version: "
msgstr "Per evitare errori, aggiorna Jellyfin per Kodi alla versione:"
msgctxt "#33161"
msgid "Check for updates"
msgstr "Ricerca aggiornamenti"
msgctxt "#33162"
msgid "Reset the music library?"
msgstr "Ripristinare la libreria musicale?"

View file

@ -901,10 +901,6 @@ msgctxt "#33160"
msgid "To avoid errors, please update Jellyfin for Kodi to version: "
msgstr "Om problemen voorkomen, update Jellyfin for Kodi naar versie:"
msgctxt "#33161"
msgid "Check for updates"
msgstr "Naar updates zoeken"
msgctxt "#33162"
msgid "Reset the music library?"
msgstr "Muziek bibliotheek resetten?"

View file

@ -897,10 +897,6 @@ msgctxt "#33160"
msgid "To avoid errors, please update Jellyfin for Kodi to version: "
msgstr "Aby uniknąć błędów, należy zaktualizować Jellyfin dla Kodi do wersji:"
msgctxt "#33161"
msgid "Check for updates"
msgstr "Sprawdź aktualizacje"
msgctxt "#33162"
msgid "Reset the music library?"
msgstr "Zresetować bibliotekę muzyki?"

View file

@ -110,8 +110,6 @@ class Events(object):
xbmc.executebuiltin('Addon.OpenSettings(plugin.video.jellyfin)')
elif mode == 'adduser':
add_user()
elif mode == 'checkupdate':
event('CheckUpdate')
elif mode == 'updateserver':
event('UpdateServer')
elif mode == 'thememedia':

View file

@ -79,7 +79,6 @@ class Service(xbmc.Monitor):
LOG.error(error)
window('jellyfin.connected.bool', True)
self.check_update()
settings('groupedSets.bool', objects.utils.get_grouped_set())
xbmc.Monitor.__init__(self)
@ -173,49 +172,6 @@ class Service(xbmc.Monitor):
raise Exception("Completed database reset")
def check_update(self, forced=False):
''' Check for objects build version and compare.
This pulls a dict that contains all the information for the build needed.
'''
LOG.info("--[ check updates/%s ]", objects.version)
kodi = "DEV" if settings('devMode.bool') else xbmc.getInfoLabel('System.BuildVersion')
# FIXME we do not want their updates
return False
try:
versions = requests.get('http://kodi.emby.media/Public%20testing/Dependencies/databases.json').json()
build = find(versions, kodi)
if not build:
raise Exception("build %s incompatible?!" % kodi)
label, zipfile = build.split('-', 1)
if label == 'DEV' and forced:
LOG.info("--[ force/objects/%s ]", label)
elif label == objects.version:
LOG.info("--[ objects/%s ]", objects.version)
return False
get_objects(zipfile, label + '.zip')
self.reload_objects()
dialog("notification", heading="{jellyfin}", message=_(33156), icon="{jellyfin}")
LOG.info("--[ new objects/%s ]", objects.version)
try:
if compare_version(self.settings['addon_version'], objects.jellyfinversion) < 0:
dialog("ok", heading="{jellyfin}", line1="%s %s" % (_(33160), objects.jellyfinversion))
except Exception:
pass
except Exception as error:
LOG.exception(error)
return True
def onNotification(self, sender, method, data):
''' All notifications are sent via NotifyAll built-in or Kodi.
@ -231,7 +187,7 @@ class Service(xbmc.Monitor):
'LibraryChanged', 'ServerOnline', 'SyncLibrary', 'RepairLibrary', 'RemoveLibrary',
'SyncLibrarySelection', 'RepairLibrarySelection', 'AddServer',
'Unauthorized', 'UpdateServer', 'UserConfigurationUpdated', 'ServerRestarting',
'RemoveServer', 'AddLibrarySelection', 'CheckUpdate', 'RemoveLibrarySelection'):
'RemoveServer', 'AddLibrarySelection', 'RemoveLibrarySelection'):
return
data = json.loads(data)[0]
@ -420,14 +376,6 @@ class Service(xbmc.Monitor):
if data.get('ServerId') is None:
Views().get_views()
elif method == 'CheckUpdate':
if not self.check_update(True):
dialog("notification", heading="{jellyfin}", message=_(21341), icon="{jellyfin}", sound=False)
else:
dialog("notification", heading="{jellyfin}", message=_(33181), icon="{jellyfin}", sound=False)
window('jellyfin.restart.bool', True)
def onSettingsChanged(self):
''' React to setting changes that impact window values.

View file

@ -96,7 +96,6 @@
<setting label="33195" id="enableAddon" type="bool" default="true" />
<setting label="33180" type="action" action="RunPlugin(plugin://plugin.video.jellyfin?mode=restartservice)" option="close" />
<setting label="30529" id="startupDelay" type="number" default="0" option="int" />
<setting label="33161" type="action" action="RunPlugin(plugin://plugin.video.jellyfin?mode=checkupdate)" option="close" />
<setting label="Developer mode" id="devMode" type="bool" default="false" />
<setting type="sep" />