mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2025-12-07 03:57:06 +03:00
9 lines
441 B
TypeScript
9 lines
441 B
TypeScript
import {getHash} from './getHash';
|
|
import { HashedValue } from '../types/hash.model';
|
|
import { ActionType, Category, VideoID } from '../types/segments.model';
|
|
import { UserID } from '../types/user.model';
|
|
|
|
export function getSubmissionUUID(videoID: VideoID, actionType: ActionType, userID: UserID, startTime: number, endTime: number): HashedValue{
|
|
return `3${getHash('v3' + videoID + startTime + endTime + userID, 1)}` as HashedValue;
|
|
}
|