From 0bd378f9c91d7bbff248ee43990508cd70036327 Mon Sep 17 00:00:00 2001 From: mcarlton00 Date: Fri, 14 Feb 2020 20:15:14 -0500 Subject: [PATCH] Fix playlist paths --- jellyfin_kodi/objects/actions.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/jellyfin_kodi/objects/actions.py b/jellyfin_kodi/objects/actions.py index 6313a446..f3d673c3 100644 --- a/jellyfin_kodi/objects/actions.py +++ b/jellyfin_kodi/objects/actions.py @@ -202,12 +202,16 @@ class Actions(object): xbmc.executebuiltin('Dialog.Close(busydialognocancel)') player.play(playlist) + server_address = item['PlaybackInfo']['ServerAddress'] + token = item['PlaybackInfo']['Token'] + for item in items['Items'][1:]: listitem = xbmcgui.ListItem() LOG.info("[ playlist/%s ] %s", item['Id'], item['Name']) self.set_listitem(item, listitem, None, False) - path = "plugin://plugin.video.jellyfin/?mode=play&id=%s&playlist=true" % item['Id'] + path = '{}/Audio/{}/stream.mp3?static=true&api_key={}'.format( + server_address, item['Id'], token) listitem.setPath(path) playlist.add(path, listitem, index)