From 2d82f6a197fb4b90970b6e1e8d80f974e2d458a9 Mon Sep 17 00:00:00 2001 From: David Trattnig <david.trattnig@o94.at> Date: Tue, 27 Oct 2020 19:47:26 +0100 Subject: [PATCH] Fixe for method call. #43 #44 --- modules/plugins/trackservice.py | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/modules/plugins/trackservice.py b/modules/plugins/trackservice.py index 30aeafa6..0823ffa7 100644 --- a/modules/plugins/trackservice.py +++ b/modules/plugins/trackservice.py @@ -119,7 +119,7 @@ class TrackServiceHandler(): data["track_duration"] = 0 entry = self.playlog.resolve_entry(meta["filename"]) - + if entry: # This is a playlog according to the scheduled playlist (normal or fallback) data["track_num"] = entry.entry_num @@ -241,7 +241,7 @@ class Playlog: """ """ if timeslot and self.previous_timeslot: - if self.previous_timeslot.get("schedule_start") == timeslot.get("schedule_start"): + if self.previous_timeslot.get("schedule_start") == timeslot.schedule_start: return # Avoid overwrite by multiple calls in a row data = {} @@ -296,8 +296,6 @@ class Playlog: self.current_timeslot = data - - def assign_fallback_playlist(self, data, timeslot): """ """ @@ -318,9 +316,6 @@ class Playlog: data["fallback_type"] = FallbackType.STATION.id - - - def get_timeslots(self): """ """ -- GitLab