Check xml playQueue
This commit is contained in:
parent
4aab4813a9
commit
a53203c828
2 changed files with 9 additions and 5 deletions
|
@ -209,11 +209,11 @@ def update_playlist_from_PMS(playlist, playlist_id=None, xml=None):
|
||||||
"""
|
"""
|
||||||
if xml is None:
|
if xml is None:
|
||||||
xml = get_PMS_playlist(playlist, playlist_id)
|
xml = get_PMS_playlist(playlist, playlist_id)
|
||||||
try:
|
try:
|
||||||
xml.attrib['%sVersion' % playlist.kind]
|
xml.attrib['%sVersion' % playlist.kind]
|
||||||
except:
|
except:
|
||||||
log.error('Could not download Plex playlist.')
|
log.error('Could not download Plex playlist.')
|
||||||
return
|
return
|
||||||
# Clear our existing playlist and the associated Kodi playlist
|
# Clear our existing playlist and the associated Kodi playlist
|
||||||
playlist.clear()
|
playlist.clear()
|
||||||
# Set new values
|
# Set new values
|
||||||
|
|
|
@ -101,14 +101,18 @@ class Playqueue(Thread):
|
||||||
startpos = None
|
startpos = None
|
||||||
# Start playback. Player does not return in time
|
# Start playback. Player does not return in time
|
||||||
if startpos:
|
if startpos:
|
||||||
|
log.debug('Start position Plex Companion playback: %s'
|
||||||
|
% startpos)
|
||||||
thread = Thread(target=Player().play,
|
thread = Thread(target=Player().play,
|
||||||
args=(playqueue.kodi_pl,
|
args=(playqueue.kodi_pl,
|
||||||
None,
|
None,
|
||||||
False,
|
False,
|
||||||
startpos))
|
startpos))
|
||||||
else:
|
else:
|
||||||
|
log.debug('Start Plex Companion playback from beginning')
|
||||||
thread = Thread(target=Player().play,
|
thread = Thread(target=Player().play,
|
||||||
args=(playqueue.kodi_pl,))
|
args=(playqueue.kodi_pl,))
|
||||||
|
log.debug('Playqueues are: %s' % self.playqueues)
|
||||||
thread.setDaemon(True)
|
thread.setDaemon(True)
|
||||||
thread.start()
|
thread.start()
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue