From 7cbd1fa59de003253a44c0d0da561357dd902aba Mon Sep 17 00:00:00 2001 From: Ajay Date: Wed, 23 Apr 2025 20:16:33 -0400 Subject: [PATCH] Fix downvoted segments not getting saved --- src/utils/segmentData.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/segmentData.ts b/src/utils/segmentData.ts index c79562c3..69820c08 100644 --- a/src/utils/segmentData.ts +++ b/src/utils/segmentData.ts @@ -50,7 +50,7 @@ async function fetchSegmentsForVideo(videoID: VideoID): Promise if (hashParams.requiredSegment) extraRequestData.requiredSegment = hashParams.requiredSegment; const hashPrefix = (await getHash(videoID, 1)).slice(0, 5) as VideoID & HashedValue; - const hasDownvotedSegments = !!Config.local.downvotedSegments[hashPrefix]; + const hasDownvotedSegments = !!Config.local.downvotedSegments[hashPrefix.slice(0, 4)]; const response = await asyncRequestToServer('GET', "/api/skipSegments/" + hashPrefix, { categories: CompileConfig.categoryList, actionTypes: ActionTypes,