Set kodi_type for PlaylistItem automatically from plex_type

This commit is contained in:
croneter 2019-05-05 11:29:43 +02:00
parent 7616d6dc26
commit cef07c3598

View file

@ -556,6 +556,7 @@ class PlaylistItem(object):
self.name = api.title() self.name = api.title()
self.plex_id = api.plex_id() self.plex_id = api.plex_id()
self.plex_type = api.plex_type() self.plex_type = api.plex_type()
self.kodi_type = v.KODITYPE_FROM_PLEXTYPE[self.plex_type]
self.id = api.item_id() self.id = api.item_id()
self.guid = api.guid_html_escaped() self.guid = api.guid_html_escaped()
self.playcount = api.viewcount() self.playcount = api.viewcount()