mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2025-08-21 15:01:36 +00:00
remove old kodiSQL function
use DatabaseCon for DB file paths switch last few DB Cons to use the new DatabaseCon context class
This commit is contained in:
parent
881b3f8e70
commit
b55b4d0b96
9 changed files with 123 additions and 183 deletions
|
@ -291,7 +291,7 @@ class LibrarySync(threading.Thread):
|
|||
continue
|
||||
|
||||
startTime = datetime.now()
|
||||
completed = process[itemtype](cursor_emby, kodicursor, pDialog)
|
||||
completed = process[itemtype](cursor_emby, cursor_video, pDialog)
|
||||
if not completed:
|
||||
xbmc.executebuiltin('InhibitIdleShutdown(false)')
|
||||
utils.setScreensaver(value=screensaver)
|
||||
|
@ -913,7 +913,7 @@ class LibrarySync(threading.Thread):
|
|||
|
||||
if not startupComplete:
|
||||
# Verify the video database can be found
|
||||
videoDb = utils.getKodiVideoDBPath()
|
||||
videoDb = DatabaseConn()._SQL('video')
|
||||
if not xbmcvfs.exists(videoDb):
|
||||
# Database does not exists
|
||||
log.error(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue