Comment out music userdata

Not ready yet, forgot to exclude it.
This commit is contained in:
angelblue05 2015-08-14 05:33:40 -05:00
parent 2e2448b823
commit 0da02868c2

View file

@ -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']
@ -808,12 +808,13 @@ class LibrarySync(threading.Thread):
mediatype = cursorvideo.fetchone()[0]
video.append(userdata)
except:
cursormusic.execute("SELECT media_type FROM emby WHERE emby_id = ?", (itemId,))
self.logMsg("Item %s is not found in Kodi database." % itemId, 2)
'''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 +841,7 @@ class LibrarySync(threading.Thread):
connection.commit()
xbmc.executebuiltin("UpdateLibrary(music)")'''
# Close connection
cursormusic.close()
#cursormusic.close()
self.SaveLastSync()
def remove_items(self, itemsRemoved):