From cef07c3598cc3a2e07b2cf327e0cbcc02ccb0031 Mon Sep 17 00:00:00 2001 From: croneter Date: Sun, 5 May 2019 11:29:43 +0200 Subject: [PATCH] Set kodi_type for PlaylistItem automatically from plex_type --- resources/lib/playlist_func.py | 1 + 1 file changed, 1 insertion(+) diff --git a/resources/lib/playlist_func.py b/resources/lib/playlist_func.py index 93d784b1..b57470ef 100644 --- a/resources/lib/playlist_func.py +++ b/resources/lib/playlist_func.py @@ -556,6 +556,7 @@ class PlaylistItem(object): self.name = api.title() self.plex_id = api.plex_id() self.plex_type = api.plex_type() + self.kodi_type = v.KODITYPE_FROM_PLEXTYPE[self.plex_type] self.id = api.item_id() self.guid = api.guid_html_escaped() self.playcount = api.viewcount()