mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-12-25 02:06:09 +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)')
|
xbmc.executebuiltin('Dialog.Close(busydialognocancel)')
|
||||||
player.play(playlist)
|
player.play(playlist)
|
||||||
|
|
||||||
|
server_address = item['PlaybackInfo']['ServerAddress']
|
||||||
|
token = item['PlaybackInfo']['Token']
|
||||||
|
|
||||||
for item in items['Items'][1:]:
|
for item in items['Items'][1:]:
|
||||||
listitem = xbmcgui.ListItem()
|
listitem = xbmcgui.ListItem()
|
||||||
LOG.info("[ playlist/%s ] %s", item['Id'], item['Name'])
|
LOG.info("[ playlist/%s ] %s", item['Id'], item['Name'])
|
||||||
|
|
||||||
self.set_listitem(item, listitem, None, False)
|
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)
|
listitem.setPath(path)
|
||||||
|
|
||||||
playlist.add(path, listitem, index)
|
playlist.add(path, listitem, index)
|
||||||
|
|
Loading…
Reference in a new issue