Fix boxset

This commit is contained in:
angelblue05 2015-12-25 21:36:46 -06:00
parent cbafdce7bb
commit 9959806f5b
2 changed files with 8 additions and 3 deletions

View file

@ -521,8 +521,13 @@ class Movies(Items):
if not current.get(itemid):
# Assign boxset to movie
emby_dbitem = emby_db.getItem_byId(itemid)
try:
movieid = emby_dbitem[0]
self.logMsg("New addition to boxset %s: %s" % (title, movie['Name']))
except TypeError:
self.logMsg("Failed to add: %s to boxset." % movie['Name'], 1)
continue
self.logMsg("New addition to boxset %s: %s" % (title, movie['Name']), 1)
kodi_db.assignBoxset(setid, movieid)
# Update emby reference
emby_db.updateParentId(itemid, setid)

View file

@ -259,7 +259,7 @@ class Read_EmbyServer():
def getMovies_byBoxset(self, boxsetid):
items = self.getSection(boxsetid)
items = self.getSection(boxsetid, "Movie")
return items