Sponsorblock progressbar (#18)
* Generate sponsorblock bar * Sponsorblock chapter label * Add comment * Fix typo * Changelog
This commit is contained in:
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
|
||||
|
||||
Reference in new issue
Block a user