diff --git a/src/iSponsorBlockTV/main.py b/src/iSponsorBlockTV/main.py index 5a056f4..f7cb347 100644 --- a/src/iSponsorBlockTV/main.py +++ b/src/iSponsorBlockTV/main.py @@ -101,10 +101,10 @@ class DeviceListener: next_segment = None for segment in segments: segment_start = segment["start"] + segment_end = segment["end"] is_within_start_range = ( - position < 1 - and segment_start <= position < segment["end"] - and segment["end"] > 1 + position < 1 < segment_end + and segment_start <= position < segment_end ) is_beyond_current_position = segment_start > position