mirror of
https://github.com/dmunozv04/iSponsorBlockTV.git
synced 2026-01-27 04:40:51 +03:00
Rework conditions
Fixes Chained comparison PYL-R1716
This commit is contained in:
@@ -101,10 +101,10 @@ class DeviceListener:
|
|||||||
next_segment = None
|
next_segment = None
|
||||||
for segment in segments:
|
for segment in segments:
|
||||||
segment_start = segment["start"]
|
segment_start = segment["start"]
|
||||||
|
segment_end = segment["end"]
|
||||||
is_within_start_range = (
|
is_within_start_range = (
|
||||||
position < 1
|
position < 1 < segment_end
|
||||||
and segment_start <= position < segment["end"]
|
and segment_start <= position < segment_end
|
||||||
and segment["end"] > 1
|
|
||||||
)
|
)
|
||||||
is_beyond_current_position = segment_start > position
|
is_beyond_current_position = segment_start > position
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user