Load playlist before status (close #72)

Load the playlist before loading the status for the idle event “changed”
to make sure the playlist information is attached to the current album
correctly.
This commit is contained in:
coderkun 2020-08-02 17:39:04 +02:00
parent 83990c8796
commit 973d3dd921

View file

@ -369,8 +369,8 @@ class Client(Base):
self._logger.info("idle subsystems: %r", subsystems)
if subsystems:
if subsystems['changed'] == 'player':
self.get_status()
self.load_playlist()
self.get_status()
if subsystems['changed'] == 'mixer':
self.get_status()
if subsystems['changed'] == 'playlist':