Fix faulty playlist init

This commit is contained in:
tomkat83 2016-08-07 16:31:07 +02:00
parent a23c357734
commit a248580f24

View file

@ -86,13 +86,11 @@ class PlexCompanion(threading.Thread):
self.queueId = None self.queueId = None
if self.playlist is None: if self.playlist is None:
if data.get('type') == 'music': if data.get('type') == 'music':
self.playlist = playlist.Playlist('music', self.playlist = playlist.Playlist('music')
player=self.player)
elif data.get('type') == 'video': elif data.get('type') == 'video':
self.playlist = playlist.Playlist('video', self.playlist = playlist.Playlist('video')
player=self.player)
else: else:
self.playlist = playlist.Playlist(player=self.player) self.playlist = playlist.Playlist()
if queueId != self.queueId: if queueId != self.queueId:
self.logMsg('New playlist received, updating!', 1) self.logMsg('New playlist received, updating!', 1)
self.queueId = queueId self.queueId = queueId