Add verification for manual/repair sync

This commit is contained in:
angelblue05 2015-12-26 12:53:24 -06:00
parent c125414991
commit f8fe1fc694

View file

@ -8,6 +8,7 @@ import urlparse
import xbmc import xbmc
import xbmcaddon import xbmcaddon
import xbmcgui
################################################################################################# #################################################################################################
@ -87,12 +88,15 @@ class Main:
if mode == "settings": if mode == "settings":
xbmc.executebuiltin('Addon.OpenSettings(plugin.video.emby)') xbmc.executebuiltin('Addon.OpenSettings(plugin.video.emby)')
elif mode in ("manualsync", "repair"): elif mode in ("manualsync", "repair"):
if utils.window('emby_dbScan') != "true":
import librarysync import librarysync
lib = librarysync.LibrarySync() lib = librarysync.LibrarySync()
if mode == "manualsync": if mode == "manualsync":
lib.fullSync(manualrun=True) lib.fullSync(manualrun=True)
else: else:
lib.fullSync(repair=True) lib.fullSync(repair=True)
else:
utils.logMsg("EMBY", "Database scan is already running.", 1)
elif mode == "texturecache": elif mode == "texturecache":
import artwork import artwork