Fix Companion client resuming playback

This commit is contained in:
croneter 2018-02-05 21:00:40 +01:00
parent a4f4d0b7a7
commit 764937e0b5

View file

@ -106,16 +106,12 @@ class PlexCompanion(Thread):
api = API(xml[0]) api = API(xml[0])
playqueue = PQ.get_playqueue_from_type( playqueue = PQ.get_playqueue_from_type(
v.KODI_PLAYLIST_TYPE_FROM_PLEX_TYPE[api.getType()]) v.KODI_PLAYLIST_TYPE_FROM_PLEX_TYPE[api.getType()])
if container_key == playqueue.id: PQ.update_playqueue_from_PMS(
LOG.info('Already know this playqueue - ignoring') playqueue,
playqueue.transient_token = data.get('token') playqueue_id=container_key,
else: repeat=query.get('repeat'),
PQ.update_playqueue_from_PMS( offset=data.get('offset'),
playqueue, transient_token=data.get('token'))
playqueue_id=container_key,
repeat=query.get('repeat'),
offset=data.get('offset'),
transient_token=data.get('token'))
@LOCKER.lockthis @LOCKER.lockthis
def _process_streams(self, data): def _process_streams(self, data):