mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-11-10 04:06:11 +00:00
Fix playlist paths
This commit is contained in:
parent
82910c6b2d
commit
0bd378f9c9
1 changed files with 5 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue