mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2025-05-17 14:55:08 +00:00
Prep parentid change
Few other things
This commit is contained in:
parent
0478894676
commit
2deb31b294
8 changed files with 51 additions and 26 deletions
|
@ -580,12 +580,17 @@ class SortWorker(threading.Thread):
|
|||
|
||||
return
|
||||
|
||||
media = database.get_media_by_id(item_id)
|
||||
|
||||
if media:
|
||||
try:
|
||||
media = database.get_media_by_id(item_id)
|
||||
self.output[media].put({'Id': item_id, 'Type': media})
|
||||
else:
|
||||
LOG.info("Could not find media %s in the emby database.", item_id)
|
||||
except Exception:
|
||||
items = database.get_media_by_parent_id(item_id)
|
||||
|
||||
if not items:
|
||||
LOG.info("Could not find media %s in the emby database.", item_id)
|
||||
else:
|
||||
for item in items:
|
||||
self.output[item[1]].put({'Id': item[0], 'Type': item[1]})
|
||||
|
||||
self.queue.task_done()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue