load all item details for playlists

This commit is contained in:
Sebastian S 2019-01-16 11:06:45 +01:00
parent 749d0e92e4
commit 7e2fdede83

View file

@ -230,10 +230,9 @@ class Monitor(xbmc.Monitor):
elif method == 'Play': elif method == 'Play':
item = server['api'].get_item(data['ItemIds'].pop(0)) items = server['api'].get_items(data['ItemIds'])
data['ItemIds'].insert(0, item)
PlaylistWorker(data.get('ServerId'), data['ItemIds'], data['PlayCommand'] == 'PlayNow', PlaylistWorker(data.get('ServerId'), items, data['PlayCommand'] == 'PlayNow',
data.get('StartPositionTicks', 0), data.get('AudioStreamIndex'), data.get('StartPositionTicks', 0), data.get('AudioStreamIndex'),
data.get('SubtitleStreamIndex')).start() data.get('SubtitleStreamIndex')).start()