Direct paths: fix pathId in Kodi movie table
This commit is contained in:
parent
8f41b5bf79
commit
f716df0c29
1 changed files with 3 additions and 1 deletions
|
@ -65,6 +65,7 @@ class Movie(ItemBase):
|
|||
content='movies',
|
||||
scraper='metadata.local')
|
||||
path = library_path
|
||||
kodi_parent_pathid = kodi_pathid
|
||||
else:
|
||||
# Plex library contains folders named identical to the
|
||||
# video file, e.g.
|
||||
|
@ -81,6 +82,7 @@ class Movie(ItemBase):
|
|||
path = video_path
|
||||
else:
|
||||
kodi_pathid = self.kodidb.get_path(path)
|
||||
kodi_parent_pathid = kodi_pathid
|
||||
|
||||
if update_item:
|
||||
LOG.info('UPDATE movie plex_id: %s - %s', plex_id, api.title())
|
||||
|
@ -145,7 +147,7 @@ class Movie(ItemBase):
|
|||
api.trailer(),
|
||||
api.list_to_string(api.countries()),
|
||||
path,
|
||||
kodi_pathid,
|
||||
kodi_parent_pathid,
|
||||
api.premiere_date(),
|
||||
api.userrating())
|
||||
|
||||
|
|
Loading…
Reference in a new issue