Merge pull request #192 from mcarlton00/fix-remote-crash

Fix playlist paths
This commit is contained in:
mcarlton00 2020-02-15 11:22:18 -05:00 committed by GitHub
commit 94456ddcd8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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)