mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-12-25 02:06:09 +00:00
Add verification for manual/repair sync
This commit is contained in:
parent
c125414991
commit
f8fe1fc694
1 changed files with 9 additions and 5 deletions
14
default.py
14
default.py
|
@ -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"):
|
||||||
import librarysync
|
if utils.window('emby_dbScan') != "true":
|
||||||
lib = librarysync.LibrarySync()
|
import librarysync
|
||||||
if mode == "manualsync":
|
lib = librarysync.LibrarySync()
|
||||||
lib.fullSync(manualrun=True)
|
if mode == "manualsync":
|
||||||
|
lib.fullSync(manualrun=True)
|
||||||
|
else:
|
||||||
|
lib.fullSync(repair=True)
|
||||||
else:
|
else:
|
||||||
lib.fullSync(repair=True)
|
utils.logMsg("EMBY", "Database scan is already running.", 1)
|
||||||
|
|
||||||
elif mode == "texturecache":
|
elif mode == "texturecache":
|
||||||
import artwork
|
import artwork
|
||||||
|
|
Loading…
Reference in a new issue