mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2025-12-07 12:07:11 +03:00
Fix hiding segments not working on videos with YouTube chapters
Fixes #2194
This commit is contained in:
@@ -199,7 +199,7 @@ export default class Utils {
|
|||||||
|
|
||||||
getSponsorIndexFromUUID(sponsorTimes: SponsorTime[], UUID: string): number {
|
getSponsorIndexFromUUID(sponsorTimes: SponsorTime[], UUID: string): number {
|
||||||
for (let i = 0; i < sponsorTimes.length; i++) {
|
for (let i = 0; i < sponsorTimes.length; i++) {
|
||||||
if (sponsorTimes[i].UUID.startsWith(UUID) || UUID.startsWith(sponsorTimes[i].UUID)) {
|
if (sponsorTimes[i].UUID && (sponsorTimes[i].UUID.startsWith(UUID) || UUID.startsWith(sponsorTimes[i].UUID))) {
|
||||||
return i;
|
return i;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -320,6 +320,7 @@ export default class Utils {
|
|||||||
|
|
||||||
allDownvotes[hashedVideoID] = currentVideoData;
|
allDownvotes[hashedVideoID] = currentVideoData;
|
||||||
}
|
}
|
||||||
|
console.log(allDownvotes)
|
||||||
|
|
||||||
const entries = Object.entries(allDownvotes);
|
const entries = Object.entries(allDownvotes);
|
||||||
if (entries.length > 10000) {
|
if (entries.length > 10000) {
|
||||||
|
|||||||
Reference in New Issue
Block a user