Fix companion for "Playback via PMS"

This commit is contained in:
tomkat83 2017-05-07 16:58:12 +02:00
parent 192c6e2e9a
commit 5adc032330
2 changed files with 3 additions and 2 deletions

View file

@ -200,7 +200,7 @@ class PlaybackUtils():
playqueue, playqueue,
self.currentPosition+1, self.currentPosition+1,
convert_PKC_to_listitem(listitem), convert_PKC_to_listitem(listitem),
playurl, file=playurl,
kodi_item={'id': kodi_id, 'type': kodi_type}) kodi_item={'id': kodi_id, 'type': kodi_type})
else: else:
# Full metadata$ # Full metadata$

View file

@ -535,9 +535,10 @@ def add_listitem_to_Kodi_playlist(playlist, pos, listitem, file,
# We need to add this to our internal queue as well # We need to add this to our internal queue as well
if xml_video_element is not None: if xml_video_element is not None:
item = playlist_item_from_xml(playlist, xml_video_element) item = playlist_item_from_xml(playlist, xml_video_element)
item.file = file
else: else:
item = playlist_item_from_kodi(kodi_item) item = playlist_item_from_kodi(kodi_item)
if file is not None:
item.file = file
playlist.items.insert(pos, item) playlist.items.insert(pos, item)
log.debug('Done inserting for %s' % playlist) log.debug('Done inserting for %s' % playlist)