mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2025-12-16 16:37:18 +03:00
Add user agent to json
@@ -101,7 +101,7 @@ __________________________________________________________________
|
|||||||
endTime: float,
|
endTime: float,
|
||||||
category: string,
|
category: string,
|
||||||
userID: string, //This should be a randomly generated UUID stored locally (not the public one)
|
userID: string, //This should be a randomly generated UUID stored locally (not the public one)
|
||||||
userAgent: string, // Name of Client or Bot/1.1
|
userAgent: string, // Name of Client or Bot/v1.1.2
|
||||||
|
|
||||||
service: string, // Optional, default is 'YouTube'. See https://github.com/ajayyy/SponsorBlock/wiki/Types#service
|
service: string, // Optional, default is 'YouTube'. See https://github.com/ajayyy/SponsorBlock/wiki/Types#service
|
||||||
videoDuration: float, // Optional, duration of video, will attempt to retrieve from the YouTube API if missing (to be used to determine when a submission is out of date)
|
videoDuration: float, // Optional, duration of video, will attempt to retrieve from the YouTube API if missing (to be used to determine when a submission is out of date)
|
||||||
@@ -113,8 +113,11 @@ __________________________________________________________________
|
|||||||
{
|
{
|
||||||
videoID: string,
|
videoID: string,
|
||||||
userID: string, // This should be a randomly generated UUID stored locally (not the public one)
|
userID: string, // This should be a randomly generated UUID stored locally (not the public one)
|
||||||
|
userAgent: string, // Name of Client or Bot/v1.1.2
|
||||||
|
|
||||||
service: string, // Optional, default is 'YouTube'. See https://github.com/ajayyy/SponsorBlock/wiki/Types#service
|
service: string, // Optional, default is 'YouTube'. See https://github.com/ajayyy/SponsorBlock/wiki/Types#service
|
||||||
videoDuration: float, // Optional, duration of video, will attempt to retrieve from the YouTube API if missing (to be used to determine when a submission is out of date)
|
videoDuration: float, // Optional, duration of video, will attempt to retrieve from the YouTube API if missing (to be used to determine when a submission is out of date)
|
||||||
|
|
||||||
segments: [{ // Array of this object
|
segments: [{ // Array of this object
|
||||||
segment: float[], //[0, 15.23] start and end time in seconds
|
segment: float[], //[0, 15.23] start and end time in seconds
|
||||||
category: string
|
category: string
|
||||||
|
|||||||
Reference in New Issue
Block a user