From 875d704e5a78c818070abca8e2e09a4d5e3913fd Mon Sep 17 00:00:00 2001 From: croneter Date: Sat, 6 Apr 2019 13:52:03 +0200 Subject: [PATCH] Don't store filename in Kodi db --- resources/lib/itemtypes/movies.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/resources/lib/itemtypes/movies.py b/resources/lib/itemtypes/movies.py index 203f4ef8..6a83a2d4 100644 --- a/resources/lib/itemtypes/movies.py +++ b/resources/lib/itemtypes/movies.py @@ -73,12 +73,11 @@ class Movie(ItemBase): if do_indirect: # Set plugin path and media flags using real filename 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, kodi_id, v.KODI_TYPE_MOVIE, - v.PLEX_TYPE_MOVIE, - api.file_name(force_first_media=True)) + v.PLEX_TYPE_MOVIE) playurl = filename kodi_pathid = self.kodidb.get_path(path)