mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-12-26 18:56:15 +00:00
Set idParentPath even in add-on mode
Does not seem to harm anything even if it does not fix the infos
This commit is contained in:
parent
e28a041287
commit
435ad78132
1 changed files with 5 additions and 8 deletions
|
@ -177,7 +177,6 @@ class TVShows(KodiDb):
|
||||||
self.jellyfin_db.add_reference(*values(obj, QUEM.add_reference_tvshow_obj))
|
self.jellyfin_db.add_reference(*values(obj, QUEM.add_reference_tvshow_obj))
|
||||||
LOG.debug("ADD tvshow [%s/%s/%s] %s: %s", obj['TopPathId'], obj['PathId'], obj['ShowId'], obj['Title'], obj['Id'])
|
LOG.debug("ADD tvshow [%s/%s/%s] %s: %s", obj['TopPathId'], obj['PathId'], obj['ShowId'], obj['Title'], obj['Id'])
|
||||||
|
|
||||||
if self.direct_path:
|
|
||||||
self.update_path_parent_id(obj['PathId'], obj['TopPathId'])
|
self.update_path_parent_id(obj['PathId'], obj['TopPathId'])
|
||||||
|
|
||||||
def tvshow_update(self, obj):
|
def tvshow_update(self, obj):
|
||||||
|
@ -196,7 +195,6 @@ class TVShows(KodiDb):
|
||||||
self.jellyfin_db.update_reference(*values(obj, QUEM.update_reference_obj))
|
self.jellyfin_db.update_reference(*values(obj, QUEM.update_reference_obj))
|
||||||
LOG.debug("UPDATE tvshow [%s/%s] %s: %s", obj['PathId'], obj['ShowId'], obj['Title'], obj['Id'])
|
LOG.debug("UPDATE tvshow [%s/%s] %s: %s", obj['PathId'], obj['ShowId'], obj['Title'], obj['Id'])
|
||||||
|
|
||||||
if self.direct_path:
|
|
||||||
self.update_path_parent_id(obj['PathId'], obj['TopPathId'])
|
self.update_path_parent_id(obj['PathId'], obj['TopPathId'])
|
||||||
|
|
||||||
def get_path_filename(self, obj):
|
def get_path_filename(self, obj):
|
||||||
|
@ -392,7 +390,6 @@ class TVShows(KodiDb):
|
||||||
|
|
||||||
self.jellyfin_db.add_reference(*values(obj, QUEM.add_reference_episode_obj))
|
self.jellyfin_db.add_reference(*values(obj, QUEM.add_reference_episode_obj))
|
||||||
|
|
||||||
if self.direct_path:
|
|
||||||
parentPathId = self.jellyfin_db.get_episode_kodi_parent_path_id(*values(obj, QUEM.get_episode_kodi_parent_path_id_obj))
|
parentPathId = self.jellyfin_db.get_episode_kodi_parent_path_id(*values(obj, QUEM.get_episode_kodi_parent_path_id_obj))
|
||||||
LOG.debug("Setting episode pathParentId, episode %s, title %s, pathId %s, pathParentId %s", obj['Id'], obj['Title'], obj['PathId'], parentPathId)
|
LOG.debug("Setting episode pathParentId, episode %s, title %s, pathId %s, pathParentId %s", obj['Id'], obj['Title'], obj['PathId'], parentPathId)
|
||||||
self.update_path_parent_id(obj['PathId'], parentPathId)
|
self.update_path_parent_id(obj['PathId'], parentPathId)
|
||||||
|
|
Loading…
Reference in a new issue