From b5471d0df66266ff1b2666bcba46b11d7b508d70 Mon Sep 17 00:00:00 2001 From: Kuba <132459354+KubaPro010@users.noreply.github.com> Date: Sat, 18 Oct 2025 19:55:46 +0200 Subject: [PATCH] log --- modules/active_modifier.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/active_modifier.py b/modules/active_modifier.py index 4726e30..8021e69 100644 --- a/modules/active_modifier.py +++ b/modules/active_modifier.py @@ -58,10 +58,13 @@ class Module(ActiveModifier): timestamp = now.timestamp() + last_track_duration future = datetime.datetime.fromtimestamp(timestamp) if now.hour < MORNING_START and future.hour > MORNING_START: + logger.warning("Skipping track as it bleeds into the morning") return None, None elif now.hour < DAY_END and future.hour > DAY_END: + logger.warning("Skipping track as it bleeds into the night") return None, None elif future.day > now.day: # late night goes mid day, as it starts at midnight + logger.warning("Skipping track as it the next day") return None, None return self.last_track, False