mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2025-08-21 15:01:36 +00:00
Update views.py
This commit is contained in:
parent
82c31e0672
commit
5b6a53f58b
5 changed files with 75 additions and 134 deletions
|
@ -508,13 +508,9 @@ class LibrarySync(threading.Thread):
|
|||
|
||||
# do a view update if needed
|
||||
if self.refresh_views:
|
||||
with DatabaseConn('emby') as conn_emby, DatabaseConn('video') as conn_video:
|
||||
with closing(conn_emby.cursor()) as cursor_emby, closing(conn_video.cursor()) as cursor_video:
|
||||
# Received userconfig update
|
||||
self.refresh_views = False
|
||||
self.maintainViews(cursor_emby, cursor_video)
|
||||
self.forceLibraryUpdate = True
|
||||
update_embydb = True
|
||||
self.refreshViews()
|
||||
self.refresh_views = False
|
||||
self.forceLibraryUpdate = True
|
||||
|
||||
# do a lib update if any items in list
|
||||
totalUpdates = len(self.addedItems) + len(self.updateItems) + len(self.userdataItems) + len(self.removeItems)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue