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 = []
|
row.children = []
|
||||||
for each item in json ' parse items and push them to row
|
for each item in json ' parse items and push them to row
|
||||||
itemData = GetItemData(item)
|
itemData = GetItemData(item)
|
||||||
row.children.Push(itemData)
|
if itemData <> invalid
|
||||||
|
row.children.Push(itemData)
|
||||||
|
end if
|
||||||
end for
|
end for
|
||||||
return row
|
return row
|
||||||
end if
|
end if
|
||||||
end function
|
end function
|
||||||
|
|
||||||
function GetItemData(video as object) as object
|
function GetItemData(video as object) as object
|
||||||
|
' TODO: handle playlists and channels
|
||||||
|
if video.videoId = invalid
|
||||||
|
return invalid
|
||||||
|
end if
|
||||||
item = {}
|
item = {}
|
||||||
|
|
||||||
item.title = video.title
|
item.title = video.title
|
||||||
|
|||||||
Reference in new issue
Block a user