mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-12-24 17:56:11 +00:00
Merge pull request #192 from mcarlton00/fix-remote-crash
Fix playlist paths
This commit is contained in:
commit
94456ddcd8
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