Add playlist support
This commit is contained in:
1 parent
6a4478f916
commit
7c24f36149
4 files changed
+42
-2
No files matched your search
@@ -18,6 +18,9 @@ sub OnContentSet()
|
||||
end sub
|
||||
|
||||
function FormatViewCount(viewCount)
|
||||
if viewCount = invalid
|
||||
return invalid
|
||||
end if
|
||||
if viewCount < 1000
|
||||
return `${FormatFloat(viewCount)} views`
|
||||
end if
|
||||
|
||||
@@ -40,6 +40,17 @@ sub GetContent()
|
||||
end if
|
||||
end for
|
||||
|
||||
playlists = RokuYoutube.Services.Invidious.GetUserPlaylists()
|
||||
if playlists <> invalid
|
||||
for each playlist in playlists
|
||||
data = GetCategoryContent(`Playlist - ${playlist.title}`, playlist.videos)
|
||||
if data <> invalid
|
||||
rootChildren.Push(data)
|
||||
end if
|
||||
|
||||
end for
|
||||
end if
|
||||
|
||||
' set up a root ContentNode to represent rowList on the GridScreen
|
||||
contentNode = CreateObject("roSGNode", "ContentNode")
|
||||
contentNode.Update({
|
||||
|
||||
Reference in new issue
Block a user