mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2025-07-26 00:07:31 +00:00
remove some redundant code calls and do a shouldstop call in the add loop
This commit is contained in:
parent
f2772ebdbd
commit
25286717b3
2 changed files with 15 additions and 9 deletions
|
@ -74,6 +74,7 @@ class LibrarySync():
|
|||
|
||||
finally:
|
||||
WINDOW.setProperty("SyncDatabaseRunning", "false")
|
||||
utils.logMsg("Sync DB", "syncDatabase Exiting", 0)
|
||||
cursor.close()
|
||||
|
||||
return True
|
||||
|
@ -448,6 +449,10 @@ class LibrarySync():
|
|||
count = 0
|
||||
|
||||
for item in episodeData:
|
||||
|
||||
if(self.ShouldStop(pDialog)):
|
||||
return False
|
||||
|
||||
progressAction = "Adding"
|
||||
WriteKodiDB().addEpisodeToKodiLibrary(item, connection, cursor)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue