From f33c7f050a35d1619d832a5c636e064c354e4d8b Mon Sep 17 00:00:00 2001 From: KubaPro010 Date: Thu, 20 Nov 2025 17:07:54 +0100 Subject: [PATCH] fix skip --- modules/active_modifier.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/active_modifier.py b/modules/active_modifier.py index c7d5286..1d29001 100644 --- a/modules/active_modifier.py +++ b/modules/active_modifier.py @@ -83,13 +83,13 @@ class Module(ActiveModifier): if last_track_duration and last_track_duration > 5*60: now = datetime.datetime.now() future = datetime.datetime.fromtimestamp(now.timestamp() + last_track_duration) - if now.hour < self.morning_start and future.hour > self.morning_start: + if now.hour < self.morning_start and future.hour >= self.morning_start: logger.warning("Skipping track as it bleeds into the morning") return (None, None), None - elif now.hour < self.day_end and future.hour > self.day_end: + elif now.hour < self.day_end and future.hour >= self.day_end: logger.warning("Skipping track as it bleeds into the night") return (None, None), None - elif future.day > now.day: # late night goes mid day, as it starts at midnight + 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), None logger.info("Track ends at", repr(future))