From b225cf1d1560a950cd5d92e2b48f890c8937b06d Mon Sep 17 00:00:00 2001 From: Ajay Ramachandran Date: Sat, 31 Jul 2021 21:26:13 -0400 Subject: [PATCH] Add user agent to json --- API-Docs.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/API-Docs.md b/API-Docs.md index db9949f..deeea28 100644 --- a/API-Docs.md +++ b/API-Docs.md @@ -101,7 +101,7 @@ __________________________________________________________________ endTime: float, category: string, 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 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, 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 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 segment: float[], //[0, 15.23] start and end time in seconds category: string