Playlet backend channel sort options (#649)
* Playlet backend channel sort options * tweak
This commit is contained in:
1 parent
68aeec3d6f
commit
d054dd64a5
7 files changed
+159
-26
No files matched your search
@@ -141,12 +141,16 @@ namespace Innertube
|
||||
|
||||
items = []
|
||||
continuation = invalid
|
||||
sortOptions = invalid
|
||||
feeds = ParseResponseDataForFeeds(responseData, { "currentAuthor": author, "currentAuthorId": authorId })
|
||||
if feeds.Count() > 0
|
||||
items = ValidArray(feeds[0].items)
|
||||
if feeds[0].DoesExist("continuation")
|
||||
continuation = feeds[0].continuation
|
||||
end if
|
||||
if feeds[0].DoesExist("sortOptions")
|
||||
sortOptions = feeds[0].sortOptions
|
||||
end if
|
||||
end if
|
||||
|
||||
channel = {
|
||||
@@ -161,9 +165,13 @@ namespace Innertube
|
||||
"items": items
|
||||
}
|
||||
|
||||
' continuation and sort options are specific to certain tabs of the channel
|
||||
if continuation <> invalid
|
||||
channel["continuation"] = continuation
|
||||
end if
|
||||
if sortOptions <> invalid
|
||||
channel["sortOptions"] = sortOptions
|
||||
end if
|
||||
|
||||
return channel
|
||||
end function
|
||||
|
||||
Reference in new issue
Block a user