Sponsorblock progressbar (#18)

* Generate sponsorblock bar

* Sponsorblock chapter label

* Add comment

* Fix typo

* Changelog
This commit is contained in:
Brahim Hadriche authored and GitHub committed 2022-11-30 19:41:07 -05:00
1 parent 21593001ae
commit 64cf7b54a0
7 files changed
+192 -1

No files matched your search

@@ -9,10 +9,17 @@ function TaskMain()
videoId = input.videoId
skipSegments = SponsorBlock.GetSkipSegmentsForVideo(videoId)
barPath = invalid
if skipSegments <> invalid
barPath = `tmp:/sponsorblock_bar_${videoId}.png`
SponsorBlock.GenerateProgressBarBackground(skipSegments, barPath)
end if
m.top.setField("output", {
videoId: videoId,
skipSegments: skipSegments
skipSegments: skipSegments,
barPath: barPath
})
end function