Skip to content

Commit 820264e

Browse files
authored
video id hash length to 4 (#4313)
1 parent 698bb31 commit 820264e

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)