Fix faulty playlist init
This commit is contained in:
parent
a23c357734
commit
a248580f24
1 changed files with 3 additions and 5 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue