mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-12-26 02:36:10 +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):
|
if not current.get(itemid):
|
||||||
# Assign boxset to movie
|
# Assign boxset to movie
|
||||||
emby_dbitem = emby_db.getItem_byId(itemid)
|
emby_dbitem = emby_db.getItem_byId(itemid)
|
||||||
|
try:
|
||||||
movieid = emby_dbitem[0]
|
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)
|
kodi_db.assignBoxset(setid, movieid)
|
||||||
# Update emby reference
|
# Update emby reference
|
||||||
emby_db.updateParentId(itemid, setid)
|
emby_db.updateParentId(itemid, setid)
|
||||||
|
|
|
@ -259,7 +259,7 @@ class Read_EmbyServer():
|
||||||
|
|
||||||
def getMovies_byBoxset(self, boxsetid):
|
def getMovies_byBoxset(self, boxsetid):
|
||||||
|
|
||||||
items = self.getSection(boxsetid)
|
items = self.getSection(boxsetid, "Movie")
|
||||||
|
|
||||||
return items
|
return items
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue