mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-12-25 18:26:15 +00:00
Fix boxset
This commit is contained in:
parent
cbafdce7bb
commit
9959806f5b
2 changed files with 8 additions and 3 deletions
|
@ -521,8 +521,13 @@ class Movies(Items):
|
|||
if not current.get(itemid):
|
||||
# Assign boxset to movie
|
||||
emby_dbitem = emby_db.getItem_byId(itemid)
|
||||
movieid = emby_dbitem[0]
|
||||
self.logMsg("New addition to boxset %s: %s" % (title, movie['Name']))
|
||||
try:
|
||||
movieid = emby_dbitem[0]
|
||||
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)
|
||||
|
|
|
@ -259,7 +259,7 @@ class Read_EmbyServer():
|
|||
|
||||
def getMovies_byBoxset(self, boxsetid):
|
||||
|
||||
items = self.getSection(boxsetid)
|
||||
items = self.getSection(boxsetid, "Movie")
|
||||
|
||||
return items
|
||||
|
||||
|
|
Loading…
Reference in a new issue