From 60cc67eb150b11ef6baa0acba64193e595da2ca1 Mon Sep 17 00:00:00 2001 From: Matt Date: Thu, 12 Dec 2019 21:32:53 -0500 Subject: [PATCH 1/3] Correct filepath when entering data to database --- jellyfin_kodi/objects/movies.py | 2 +- jellyfin_kodi/objects/tvshows.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/jellyfin_kodi/objects/movies.py b/jellyfin_kodi/objects/movies.py index 8c58bcdf..ffb57906 100644 --- a/jellyfin_kodi/objects/movies.py +++ b/jellyfin_kodi/objects/movies.py @@ -175,7 +175,7 @@ class Movies(KodiDb): obj['Path'] = obj['Path'].replace(obj['Filename'], "") else: - obj['Path'] = "plugin://plugin.video.jellyfin/" + obj['Path'] = "plugin://plugin.video.jellyfin/%s/" % obj['LibraryId'] params = { 'filename': obj['Filename'].encode('utf-8'), 'id': obj['Id'], diff --git a/jellyfin_kodi/objects/tvshows.py b/jellyfin_kodi/objects/tvshows.py index c849c48a..2540c4c0 100644 --- a/jellyfin_kodi/objects/tvshows.py +++ b/jellyfin_kodi/objects/tvshows.py @@ -188,7 +188,7 @@ class TVShows(KodiDb): obj['TopLevel'] = "%s\\" % dirname(dirname(obj['Path'])) else: obj['Path'] = "%s/" % obj['Path'] - obj['TopLevel'] = "%s/" % dirname(dirname(obj['Path'])) + obj['TopLevel'] = "plugin://plugin.video.jellyfin/%s/" % obj['LibraryId'] if not validate(obj['Path']): raise Exception("Failed to validate path. User stopped.") From 146aed33e90d674e47bfb0940439213b5da44bb8 Mon Sep 17 00:00:00 2001 From: Matt Date: Fri, 13 Dec 2019 07:32:28 -0500 Subject: [PATCH 2/3] Fix shows in addon mode, not directplay --- jellyfin_kodi/objects/tvshows.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jellyfin_kodi/objects/tvshows.py b/jellyfin_kodi/objects/tvshows.py index 2540c4c0..9922641d 100644 --- a/jellyfin_kodi/objects/tvshows.py +++ b/jellyfin_kodi/objects/tvshows.py @@ -188,12 +188,12 @@ class TVShows(KodiDb): obj['TopLevel'] = "%s\\" % dirname(dirname(obj['Path'])) else: obj['Path'] = "%s/" % obj['Path'] - obj['TopLevel'] = "plugin://plugin.video.jellyfin/%s/" % obj['LibraryId'] + obj['TopLevel'] = "plugin://plugin.video.jellyfin/" if not validate(obj['Path']): raise Exception("Failed to validate path. User stopped.") else: - obj['TopLevel'] = "plugin://plugin.video.jellyfin/" + obj['TopLevel'] = "plugin://plugin.video.jellyfin/%s/" % obj['LibraryId'] obj['Path'] = "%s%s/" % (obj['TopLevel'], obj['Id']) @stop() From 014d2ef3c5cb46e3cdae73d626a612f66252dc26 Mon Sep 17 00:00:00 2001 From: Matt Date: Fri, 13 Dec 2019 18:19:48 -0500 Subject: [PATCH 3/3] Fix database entry for music videos --- jellyfin_kodi/objects/musicvideos.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jellyfin_kodi/objects/musicvideos.py b/jellyfin_kodi/objects/musicvideos.py index a819e97b..fe24e6cc 100644 --- a/jellyfin_kodi/objects/musicvideos.py +++ b/jellyfin_kodi/objects/musicvideos.py @@ -163,7 +163,7 @@ class MusicVideos(KodiDb): obj['Path'] = obj['Path'].replace(obj['Filename'], "") else: - obj['Path'] = "plugin://plugin.video.jellyfin/" + obj['Path'] = "plugin://plugin.video.jellyfin/%s/" % obj['LibraryId'] params = { 'filename': obj['Filename'].encode('utf-8'), 'id': obj['Id'],