diff --git a/modules/plugins/trackservice.py b/modules/plugins/trackservice.py index 30aeafa6f9bcb8d057d17fbd65669c7866b6e9c3..0823ffa753a27399abee3ac5caa11aedbc72de75 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): """ """