Files
playlet-piped/playlet-lib/src/components/VideoFeed/VideoRowListContentTask.bs
T
Brahim Hadricheandgithub-action linter c740d5e0a0 Bookmarks (#153)
* Empty bookmarks screen

* Bookmarks object

* Long press support

* Lint fix

* Context menu v1

* A working context menu

* Basic bookmarks in context menu

* Use a root content node for bookmarks

* context menu animation

* small tweak

* move logger around, adjust animation

* Lint fix

* Restore logger fix

* Cache channel info

* Bookmarks v1

* Added comment

* Adjust "popular" feed error handling

* Progress with bookmarks

* Add todo

* add todo

* handle roDateTime logging

* logger adjustment

* Use yaml for api and layout

* rename requestData to feedSource

* Restructure things

* Lint fix

* remove comment

* introduce feedSource id

* small cleanup

* playlist context menu

* Context menu for the channel view

* changelog

---------

Co-authored-by: github-action linter <githubaction@githubaction.com>
2023-10-19 19:16:27 -04:00

33 lines
938 B
Plaintext

import "FeedLoadState.bs"
import "pkg:/source/utils/StringUtils.bs"
@asynctask
function VideoRowListContentTask(input as object)
feeds = input.feeds
rowList = input.node
contentNode = CreateObject("roSGNode", "ContentNode")
for each feed in feeds
feedContentNode = CreateObject("roSGNode", "FeedContentNode")
feedContentNode.title = feed.title
feedContentNode.feedSourcesIndex = 0
feedContentNode.loadState = FeedLoadState.None
feedSources = feed.feedSources
for i = 0 to feedSources.count() - 1
feedSources[i].state = {
loadState: FeedLoadState.None
}
end for
feedContentNode.feedSources = feedSources
for i = 1 to 4
feedContentNode.createChild("LoadingContentNode")
end for
contentNode.appendChild(feedContentNode)
end for
rowList.content = contentNode
end function