Revert "Comment out music userdata as it's not ready yet."
This reverts commit 5b81da2d96
.
This commit is contained in:
parent
5b81da2d96
commit
2e2448b823
1 changed files with 6 additions and 6 deletions
|
@ -796,8 +796,8 @@ class LibrarySync(threading.Thread):
|
||||||
connectionvideo = utils.KodiSQL()
|
connectionvideo = utils.KodiSQL()
|
||||||
cursorvideo = connectionvideo.cursor()
|
cursorvideo = connectionvideo.cursor()
|
||||||
# Database connection to myMusicXX.db
|
# Database connection to myMusicXX.db
|
||||||
#connectionmusic = utils.KodiSQL('music')
|
connectionmusic = utils.KodiSQL('music')
|
||||||
#cursormusic = connectionmusic.cursor()
|
cursormusic = connectionmusic.cursor()
|
||||||
|
|
||||||
for userdata in listItems:
|
for userdata in listItems:
|
||||||
itemId = userdata['ItemId']
|
itemId = userdata['ItemId']
|
||||||
|
@ -807,13 +807,13 @@ class LibrarySync(threading.Thread):
|
||||||
self.logMsg("Check video database.", 1)
|
self.logMsg("Check video database.", 1)
|
||||||
mediatype = cursorvideo.fetchone()[0]
|
mediatype = cursorvideo.fetchone()[0]
|
||||||
video.append(userdata)
|
video.append(userdata)
|
||||||
except: self.logMsg("Item %s is not found in Kodi database." % itemId, 2)
|
except:
|
||||||
'''cursormusic.execute("SELECT media_type FROM emby WHERE emby_id = ?", (itemId,))
|
cursormusic.execute("SELECT media_type FROM emby WHERE emby_id = ?", (itemId,))
|
||||||
try: # Search music database
|
try: # Search music database
|
||||||
self.logMsg("Check the music database.", 1)
|
self.logMsg("Check the music database.", 1)
|
||||||
mediatype = cursormusic.fetchone()[0]
|
mediatype = cursormusic.fetchone()[0]
|
||||||
music.append(userdata)
|
music.append(userdata)
|
||||||
except: self.logMsg("Item %s is not found in Kodi database." % itemId, 2)'''
|
except: self.logMsg("Item %s is not found in Kodi database." % itemId, 2)
|
||||||
|
|
||||||
if len(video) > 0:
|
if len(video) > 0:
|
||||||
connection = connectionvideo
|
connection = connectionvideo
|
||||||
|
@ -840,7 +840,7 @@ class LibrarySync(threading.Thread):
|
||||||
connection.commit()
|
connection.commit()
|
||||||
xbmc.executebuiltin("UpdateLibrary(music)")'''
|
xbmc.executebuiltin("UpdateLibrary(music)")'''
|
||||||
# Close connection
|
# Close connection
|
||||||
#cursormusic.close()
|
cursormusic.close()
|
||||||
self.SaveLastSync()
|
self.SaveLastSync()
|
||||||
|
|
||||||
def remove_items(self, itemsRemoved):
|
def remove_items(self, itemsRemoved):
|
||||||
|
|
Loading…
Reference in a new issue