Handle search returning playlists (temp)
This commit is contained in:
1 parent
f98b9d47bc
commit
7d5ac747a3
1 file changed
+7
-1
@@ -38,13 +38,19 @@ function GetCategoryContent(category as string, json as object) as object
|
||||
row.children = []
|
||||
for each item in json ' parse items and push them to row
|
||||
itemData = GetItemData(item)
|
||||
row.children.Push(itemData)
|
||||
if itemData <> invalid
|
||||
row.children.Push(itemData)
|
||||
end if
|
||||
end for
|
||||
return row
|
||||
end if
|
||||
end function
|
||||
|
||||
function GetItemData(video as object) as object
|
||||
' TODO: handle playlists and channels
|
||||
if video.videoId = invalid
|
||||
return invalid
|
||||
end if
|
||||
item = {}
|
||||
|
||||
item.title = video.title
|
||||
|
||||
Reference in new issue
Block a user