From 973d3dd921fe3ca97151ed6b34f5fa73e8f3dbf3 Mon Sep 17 00:00:00 2001 From: coderkun Date: Sun, 2 Aug 2020 17:39:04 +0200 Subject: [PATCH] Load playlist before status (close #72) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. --- mcg/client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mcg/client.py b/mcg/client.py index b191511..1480aba 100644 --- a/mcg/client.py +++ b/mcg/client.py @@ -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':