Add contextmenu for emby settings (used to update ratings)

Add ratings sync for music files (get rating details from music files and sync back to emby)
This commit is contained in:
marcelveldt 2016-01-11 16:53:41 +01:00
parent 2e4e983acd
commit 0817085ada
88 changed files with 15314 additions and 27 deletions

View file

@ -128,10 +128,11 @@ class Embydb_Functions():
"FROM emby",
"WHERE emby_id = ?"
))
embycursor.execute(query, (embyid,))
item = embycursor.fetchone()
return item
try:
embycursor.execute(query, (embyid,))
item = embycursor.fetchone()
return item
except: return None
def getItem_byView(self, mediafolderid):
@ -291,4 +292,5 @@ class Embydb_Functions():
def removeItem(self, embyid):
query = "DELETE FROM emby WHERE emby_id = ?"
self.embycursor.execute(query, (embyid,))
self.embycursor.execute(query, (embyid,))