Direct paths: fix pathId in Kodi movie table

This commit is contained in:
croneter 2021-05-02 13:15:23 +02:00
parent 8f41b5bf79
commit f716df0c29

View file

@ -65,6 +65,7 @@ class Movie(ItemBase):
content='movies', content='movies',
scraper='metadata.local') scraper='metadata.local')
path = library_path path = library_path
kodi_parent_pathid = kodi_pathid
else: else:
# Plex library contains folders named identical to the # Plex library contains folders named identical to the
# video file, e.g. # video file, e.g.
@ -81,6 +82,7 @@ class Movie(ItemBase):
path = video_path path = video_path
else: else:
kodi_pathid = self.kodidb.get_path(path) kodi_pathid = self.kodidb.get_path(path)
kodi_parent_pathid = kodi_pathid
if update_item: if update_item:
LOG.info('UPDATE movie plex_id: %s - %s', plex_id, api.title()) LOG.info('UPDATE movie plex_id: %s - %s', plex_id, api.title())
@ -145,7 +147,7 @@ class Movie(ItemBase):
api.trailer(), api.trailer(),
api.list_to_string(api.countries()), api.list_to_string(api.countries()),
path, path,
kodi_pathid, kodi_parent_pathid,
api.premiere_date(), api.premiere_date(),
api.userrating()) api.userrating())