From 5ba8519ceb95a3b96db0623fb37b1a54f58aa802 Mon Sep 17 00:00:00 2001 From: David Trattnig <david.trattnig@o94.at> Date: Wed, 28 Oct 2020 21:19:39 +0100 Subject: [PATCH] Run without scheduler too. #39 --- modules/plugins/trackservice.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/plugins/trackservice.py b/modules/plugins/trackservice.py index 2107b75d..2a731f40 100644 --- a/modules/plugins/trackservice.py +++ b/modules/plugins/trackservice.py @@ -166,7 +166,9 @@ class TrackServiceHandler(): """ Posts the current and next show information to the Engine API. """ - current_playlist = self.engine.scheduler.get_active_playlist() + current_playlist = None + if self.engine.scheduler: + current_playlist = self.engine.scheduler.get_active_playlist() (past_timeslot, current_timeslot, next_timeslot) = self.playlog.get_timeslots() data = dict() -- GitLab