mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2025-07-26 08:17:31 +00:00
Implement LibraryChanged WebSocket event
This commit is contained in:
parent
e9646407a0
commit
c8e1d8ae54
4 changed files with 42 additions and 15 deletions
|
@ -67,7 +67,7 @@ class LibrarySync():
|
|||
|
||||
return True
|
||||
|
||||
def MoviesSync(self, fullsync, installFirstRun):
|
||||
def MoviesSync(self, fullsync, installFirstRun, itemList = []):
|
||||
|
||||
WINDOW = xbmcgui.Window( 10000 )
|
||||
pDialog = None
|
||||
|
@ -99,7 +99,7 @@ class LibrarySync():
|
|||
for view in views:
|
||||
|
||||
#process new movies
|
||||
allMB3Movies = ReadEmbyDB().getMovies(view.get('id'), True, fullsync)
|
||||
allMB3Movies = ReadEmbyDB().getMovies(id = view.get('id'), fullinfo=True, fullSync = fullsync, itemList = itemList)
|
||||
allKodiIds = set(ReadKodiDB().getKodiMoviesIds(True))
|
||||
|
||||
if(self.ShouldStop(pDialog)):
|
||||
|
@ -255,7 +255,7 @@ class LibrarySync():
|
|||
|
||||
return True
|
||||
|
||||
def TvShowsSync(self, fullsync, installFirstRun):
|
||||
def TvShowsSync(self, fullsync, installFirstRun, itemList = []):
|
||||
|
||||
addon = xbmcaddon.Addon(id='plugin.video.emby')
|
||||
WINDOW = xbmcgui.Window( 10000 )
|
||||
|
@ -282,7 +282,8 @@ class LibrarySync():
|
|||
# incremental sync --> new episodes only
|
||||
if not fullsync:
|
||||
|
||||
latestMBEpisodes = ReadEmbyDB().getLatestEpisodes(True)
|
||||
latestMBEpisodes = ReadEmbyDB().getLatestEpisodes(fullinfo = True, itemList = itemList)
|
||||
utils.logMsg("Sync TV", "Inc Sync Started on : " + str(len(latestMBEpisodes)) + " : " + str(itemList), 1)
|
||||
|
||||
if latestMBEpisodes != None:
|
||||
allKodiTvShowsIds = set(ReadKodiDB().getKodiTvShowsIds(True))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue