mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-11-12 21:26:10 +00:00
fixed IncrementalSync typo
This commit is contained in:
parent
8c6b90923e
commit
fc2f158ad0
1 changed files with 7 additions and 7 deletions
|
@ -64,7 +64,6 @@ class LibrarySync():
|
||||||
self.MoviesFullSync(connection,cursor,pDialog)
|
self.MoviesFullSync(connection,cursor,pDialog)
|
||||||
#sync Tvshows and episodes
|
#sync Tvshows and episodes
|
||||||
self.TvShowsFullSync(connection,cursor,pDialog)
|
self.TvShowsFullSync(connection,cursor,pDialog)
|
||||||
|
|
||||||
|
|
||||||
# set the install done setting
|
# set the install done setting
|
||||||
if(syncInstallRunDone == False and completed):
|
if(syncInstallRunDone == False and completed):
|
||||||
|
@ -264,22 +263,23 @@ class LibrarySync():
|
||||||
for item in itemList:
|
for item in itemList:
|
||||||
|
|
||||||
MBitem = ReadEmbyDB().getItem(item)
|
MBitem = ReadEmbyDB().getItem(item)
|
||||||
print MBitem
|
|
||||||
if MBitem["Type"] == "Episode":
|
if MBitem["Type"] == "Episode":
|
||||||
|
|
||||||
#get the tv show
|
#get the tv show
|
||||||
cursor.execute("SELECT kodi_id FROM emby WHERE media_type='tvshow' AND emby_id=?", (MBitem["SeriesId"],))
|
cursor.execute("SELECT kodi_id FROM emby WHERE media_type='tvshow' AND emby_id=?", (MBitem["SeriesId"],))
|
||||||
result = cursor.fetchall()
|
result = cursor.fetchone()
|
||||||
if result:
|
if result:
|
||||||
kodi_show_id = result[0]
|
kodi_show_id = result[0]
|
||||||
else:
|
else:
|
||||||
kodi_show_id = None
|
kodi_show_id = None
|
||||||
print "show id not found!"
|
|
||||||
|
|
||||||
if kodi_show_id:
|
if kodi_show_id:
|
||||||
WriteKodiDB().addOrUpdateEpisodeToKodiLibrary(item["Id"], kodi_show_id, connection, cursor)
|
WriteKodiDB().addOrUpdateEpisodeToKodiLibrary(MBitem["Id"], kodi_show_id, connection, cursor)
|
||||||
finally:
|
finally:
|
||||||
cursor.close()
|
cursor.close()
|
||||||
|
xbmc.executebuiltin("UpdateLibrary(video)")
|
||||||
|
xbmc.executebuiltin("Container.Refresh")
|
||||||
|
xbmc.executebuiltin("Container.Update")
|
||||||
|
|
||||||
#close the progress dialog
|
#close the progress dialog
|
||||||
if(pDialog != None):
|
if(pDialog != None):
|
||||||
|
|
Loading…
Reference in a new issue