From 2e2448b823f1e1b7bd4032330a61dc5ea8e7ed94 Mon Sep 17 00:00:00 2001 From: angelblue05 Date: Fri, 14 Aug 2015 05:32:11 -0500 Subject: [PATCH] Revert "Comment out music userdata as it's not ready yet." This reverts commit 5b81da2d96c384b443dc0c8aa9fe6f9f8bfbc573. --- resources/lib/LibrarySync.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/resources/lib/LibrarySync.py b/resources/lib/LibrarySync.py index 783adf63..e56ff584 100644 --- a/resources/lib/LibrarySync.py +++ b/resources/lib/LibrarySync.py @@ -796,8 +796,8 @@ class LibrarySync(threading.Thread): connectionvideo = utils.KodiSQL() cursorvideo = connectionvideo.cursor() # Database connection to myMusicXX.db - #connectionmusic = utils.KodiSQL('music') - #cursormusic = connectionmusic.cursor() + connectionmusic = utils.KodiSQL('music') + cursormusic = connectionmusic.cursor() for userdata in listItems: itemId = userdata['ItemId'] @@ -807,13 +807,13 @@ class LibrarySync(threading.Thread): self.logMsg("Check video database.", 1) mediatype = cursorvideo.fetchone()[0] video.append(userdata) - except: self.logMsg("Item %s is not found in Kodi database." % itemId, 2) - '''cursormusic.execute("SELECT media_type FROM emby WHERE emby_id = ?", (itemId,)) + except: + cursormusic.execute("SELECT media_type FROM emby WHERE emby_id = ?", (itemId,)) try: # Search music database self.logMsg("Check the music database.", 1) mediatype = cursormusic.fetchone()[0] 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: connection = connectionvideo @@ -840,7 +840,7 @@ class LibrarySync(threading.Thread): connection.commit() xbmc.executebuiltin("UpdateLibrary(music)")''' # Close connection - #cursormusic.close() + cursormusic.close() self.SaveLastSync() def remove_items(self, itemsRemoved):