This commit is contained in:
Brahim Hadriche committed 2022-11-18 13:03:22 -05:00
1 parent 36472ef5f6
commit 9c1a2b987b
83 files changed
-5115

No files matched your search

-17
View File
@@ -1,17 +0,0 @@
import "pkg:/source/roku_modules/rokurequests/Requests.brs"
namespace RokuYoutube.Services.SponsorBlock
const API_URL = "https://sponsor.ajay.app"
const SKIP_SEGMENT_ENDPOINT = "/api/skipSegments"
const CATEGORIES = "&category=sponsor&category=selfpromo&category=interaction&category=intro&category=outro&category=preview&category=music_offtopic"
function GetSkipSegmentsForVideo(videoId as string)
url = `${API_URL}${SKIP_SEGMENT_ENDPOINT}?videoID=${videoId}${CATEGORIES}`
response = Requests().get(url)
if response.statuscode = 200
return response.json
end if
end function
end namespace