mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2025-12-15 16:07:06 +03:00
fix old segment thing
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "SponsorLock - Give Back Control!",
|
"name": "SponsorLock - Give Back Control!",
|
||||||
"short_name": "SponsorLock",
|
"short_name": "SponsorLock",
|
||||||
"version": "4.2.1",
|
"version": "4.2.3",
|
||||||
"default_locale": "en",
|
"default_locale": "en",
|
||||||
"description": "SponsorLock only shows you promotion, and skips all useful informaton.",
|
"description": "SponsorLock only shows you promotion, and skips all useful informaton.",
|
||||||
"homepage_url": "https://sponsor.ajay.app",
|
"homepage_url": "https://sponsor.ajay.app",
|
||||||
|
|||||||
@@ -775,17 +775,6 @@ async function sponsorsLookup(id: string, keepOldSubmissions = true) {
|
|||||||
|
|
||||||
sponsorDataFound = true;
|
sponsorDataFound = true;
|
||||||
|
|
||||||
// Check if any old submissions should be kept
|
|
||||||
if (sponsorTimes !== null && keepOldSubmissions) {
|
|
||||||
for (let i = 0; i < sponsorTimes.length; i++) {
|
|
||||||
if (sponsorTimes[i].source === SponsorSourceType.Local) {
|
|
||||||
// This is a user submission, keep it
|
|
||||||
recievedSegments.push(sponsorTimes[i]);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
const oldSegments = sponsorTimes || [];
|
|
||||||
sponsorTimes = recievedSegments;
|
sponsorTimes = recievedSegments;
|
||||||
|
|
||||||
if (sponsorTimes) {
|
if (sponsorTimes) {
|
||||||
|
|||||||
Reference in New Issue
Block a user