mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-12-26 02:36:10 +00:00
added "fastsync" command to perform an incremental sync on demand
This commit is contained in:
parent
3dbdab79a9
commit
5696f76a5f
1 changed files with 3 additions and 1 deletions
|
@ -102,7 +102,7 @@ class Main:
|
|||
# Other functions
|
||||
if mode == "settings":
|
||||
xbmc.executebuiltin('Addon.OpenSettings(plugin.video.emby)')
|
||||
elif mode in ("manualsync", "repair"):
|
||||
elif mode in ("manualsync", "fastsync", "repair"):
|
||||
if utils.window('emby_online') != "true":
|
||||
# Server is not online, do not run the sync
|
||||
xbmcgui.Dialog().ok(heading="Emby for Kodi",
|
||||
|
@ -116,6 +116,8 @@ class Main:
|
|||
lib = librarysync.LibrarySync()
|
||||
if mode == "manualsync":
|
||||
librarysync.ManualSync().sync(dialog=True)
|
||||
elif mode == "fastsync":
|
||||
lib.startSync()
|
||||
else:
|
||||
lib.fullSync(repair=True)
|
||||
else:
|
||||
|
|
Loading…
Reference in a new issue