mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-12-24 09:46:11 +00:00
load all item details for playlists
This commit is contained in:
parent
749d0e92e4
commit
7e2fdede83
1 changed files with 3 additions and 4 deletions
|
@ -182,7 +182,7 @@ class Monitor(xbmc.Monitor):
|
||||||
elif method == 'Browse':
|
elif method == 'Browse':
|
||||||
|
|
||||||
result = downloader.get_filtered_section(data.get('Id'), data.get('Media'), data.get('Limit'),
|
result = downloader.get_filtered_section(data.get('Id'), data.get('Media'), data.get('Limit'),
|
||||||
data.get('Recursive'), data.get('Sort'), data.get('SortOrder'),
|
data.get('Recursive'), data.get('Sort'), data.get('SortOrder'),
|
||||||
data.get('Filters'), data.get('Params'), data.get('ServerId'))
|
data.get('Filters'), data.get('Params'), data.get('ServerId'))
|
||||||
self.void_responder(data, result)
|
self.void_responder(data, result)
|
||||||
|
|
||||||
|
@ -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()
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue