See details

- Only sync at startup
- Allow websocket to delete episodes
- NoneType fix
This commit is contained in:
xnappo 2015-04-11 10:53:17 -05:00
commit 478470607c
4 changed files with 29 additions and 29 deletions

View file

@ -922,8 +922,12 @@ class WriteKodiDB():
#get the showid
cursor.execute("SELECT idShow as showid FROM tvshow WHERE c12 = ?",(MBitem["SeriesId"],))
showid = cursor.fetchone()[0]
try:
showid = cursor.fetchone()[0]
except:
utils.logMsg("Emby","Error adding episode to Kodi Library, couldn't find show - ID: " + MBitem["Id"] + " - " + MBitem["Name"])
actionPerformed = False
return
season = 0
if MBitem.get("ParentIndexNumber") != None:
season = int(MBitem.get("ParentIndexNumber"))