* Playlet innertube backend * Video queue view * changelog * Tweaks * Lint fix * no message --------- Co-authored-by: github-action linter <githubaction@githubaction.com>
26 lines
837 B
Plaintext
26 lines
837 B
Plaintext
import "pkg:/components/Services/Invidious/InvidiousToContentNode.bs"
|
|
|
|
namespace VideoQueueViewUtils
|
|
|
|
function Open(videoQueue as object, appController as object) as object
|
|
videoQueueView = CreateObject("roSGNode", "VideoQueueView")
|
|
videoQueueView.videoQueue = videoQueue
|
|
videoQueueView.appController = appController
|
|
videoQueueView.invidious = videoQueue.invidious
|
|
videoQueueView.preferences = videoQueue.preferences
|
|
appController@.PushScreen(videoQueueView)
|
|
|
|
content = videoQueue.content
|
|
index = videoQueue.index
|
|
|
|
videoQueueView.content = content
|
|
if index > -1 and index < content.GetChildCount()
|
|
videoQueueView.jumpToItem = index
|
|
end if
|
|
|
|
videoQueueView@.Show()
|
|
return videoQueueView
|
|
end function
|
|
|
|
end namespace
|