Skip to content

Commit 1bef889

Browse files
animafpskommunarr
authored andcommitted
video id hash length to 4 (FreeTubeApp#4313)
1 parent 84f2175 commit 1bef889

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/renderer/helpers/sponsorblock.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ async function getVideoHash(videoId) {
1111
.join('')
1212
}
1313
export async function sponsorBlockSkipSegments(videoId, categories) {
14-
const videoIdHashPrefix = await getVideoHash(videoId)
14+
const videoIdHashPrefix = (await getVideoHash(videoId)).substring(0, 4)
1515
const requestUrl = `${store.getters.getSponsorBlockUrl}/api/skipSegments/${videoIdHashPrefix}?categories=${JSON.stringify(categories)}`
1616

1717
try {

0 commit comments

Comments
 (0)