From 524466360f63a2dbd00cd282e4299c92c37bb4b6 Mon Sep 17 00:00:00 2001 From: Croneter Date: Tue, 20 Mar 2018 11:26:01 +0100 Subject: [PATCH] Link episode ListItem with Kodi library item Enables full metadata such as Show and Season info --- resources/lib/PlexAPI.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/resources/lib/PlexAPI.py b/resources/lib/PlexAPI.py index 560e85e8..20e42a46 100644 --- a/resources/lib/PlexAPI.py +++ b/resources/lib/PlexAPI.py @@ -1420,10 +1420,7 @@ class API(object): listitem.setProperty('totaltime', str(userdata['Runtime'])) if typus == v.PLEX_TYPE_EPISODE: - if state.DIRECT_PATHS: - # Do NOT set a link to the Kodi DB to force Kodi to use our - # ListItem artwork for Addon Paths - metadata['mediatype'] = 'episode' + metadata['mediatype'] = 'episode' _, show, season, episode = self.episode_data() season = -1 if season is None else int(season) episode = -1 if episode is None else int(episode)