mirror of
https://github.com/dmunozv04/iSponsorBlockTV.git
synced 2025-12-19 05:58:42 +03:00
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
This commit is contained in:
@@ -155,7 +155,7 @@ class ApiHelper:
|
||||
try:
|
||||
response_segments = response["segments"]
|
||||
# sort by end
|
||||
response_segments = sorted(response_segments, key = lambda x: x["segment"][1])
|
||||
response_segments = sorted(response_segments, key=lambda x: x["segment"][1])
|
||||
# extend ends of overlapping segments to make one big segment
|
||||
for i in response_segments:
|
||||
for j in response_segments:
|
||||
@@ -163,7 +163,7 @@ class ApiHelper:
|
||||
i["segment"][1] = j["segment"][1]
|
||||
|
||||
# sort by start
|
||||
response_segments = sorted(response_segments, key = lambda x: x["segment"][0])
|
||||
response_segments = sorted(response_segments, key=lambda x: x["segment"][0])
|
||||
# extend starts of overlapping segments to make one big segment
|
||||
for i in response_segments:
|
||||
for j in response_segments:
|
||||
|
||||
Reference in New Issue
Block a user