Files
playlet-piped/src/components/VideoPlayer/VideoDetailsTask.bs
T
2022-11-18 13:04:20 -05:00

19 lines
352 B
Plaintext

import "pkg:/source/services/Invidious.bs"
function Init()
m.top.functionName = "TaskMain"
end function
function TaskMain()
input = m.top.getField("input")
videoId = input.videoId
metadata = Invidious.GetVideoMetadata(videoId)
m.top.setField("output", {
videoId: videoId,
metadata: metadata
})
end function