mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2024-11-10 01:01:55 +01:00
Only check import duplicates against unsubmitted segments
This commit is contained in:
parent
61fc1d2ed3
commit
bb7f069254
1 changed files with 1 additions and 1 deletions
|
@ -276,7 +276,7 @@ function messageListener(request: Message, sender: unknown, sendResponse: (respo
|
|||
const importedSegments = importTimes(request.data, video.duration);
|
||||
let addedSegments = false;
|
||||
for (const segment of importedSegments) {
|
||||
if (!sponsorTimesSubmitting.concat(sponsorTimes ?? []).some(
|
||||
if (!sponsorTimesSubmitting.some(
|
||||
(s) => Math.abs(s.segment[0] - segment.segment[0]) < 1
|
||||
&& Math.abs(s.segment[1] - segment.segment[1]) < 1)
|
||||
&& (segment.category !== "chapter" || utils.getCategorySelection("chapter"))) {
|
||||
|
|
Loading…
Reference in a new issue