Skip to content

Commit

Permalink
video id hash length to 4 (#4313)
Browse files Browse the repository at this point in the history
  • Loading branch information
animafps authored Nov 9, 2023
1 parent 698bb31 commit 820264e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/renderer/helpers/sponsorblock.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ async function getVideoHash(videoId) {
.join('')
}
export async function sponsorBlockSkipSegments(videoId, categories) {
const videoIdHashPrefix = await getVideoHash(videoId)
const videoIdHashPrefix = (await getVideoHash(videoId)).substring(0, 4)
const requestUrl = `${store.getters.getSponsorBlockUrl}/api/skipSegments/${videoIdHashPrefix}?categories=${JSON.stringify(categories)}`

try {
Expand Down

0 comments on commit 820264e

Please sign in to comment.