Don't store filename in Kodi db

This commit is contained in:
croneter 2019-04-06 13:52:03 +02:00
parent c0035c84a6
commit 875d704e5a

View file

@ -73,12 +73,11 @@ class Movie(ItemBase):
if do_indirect: if do_indirect:
# Set plugin path and media flags using real filename # Set plugin path and media flags using real filename
path = 'http://127.0.0.1:%s/plex/kodi/movies/' % v.WEBSERVICE_PORT path = 'http://127.0.0.1:%s/plex/kodi/movies/' % v.WEBSERVICE_PORT
filename = '{0}/file.strm?kodi_id={1}&kodi_type={2}&plex_id={0}&plex_type={3}&name={4}' filename = '{0}/file.strm?kodi_id={1}&kodi_type={2}&plex_id={0}&plex_type={3}'
filename = filename.format(plex_id, filename = filename.format(plex_id,
kodi_id, kodi_id,
v.KODI_TYPE_MOVIE, v.KODI_TYPE_MOVIE,
v.PLEX_TYPE_MOVIE, v.PLEX_TYPE_MOVIE)
api.file_name(force_first_media=True))
playurl = filename playurl = filename
kodi_pathid = self.kodidb.get_path(path) kodi_pathid = self.kodidb.get_path(path)