From 7d5ac747a303a09873490af3deb9a4e6a4fa8601 Mon Sep 17 00:00:00 2001 From: Brahim Hadriche Date: Wed, 2 Nov 2022 20:01:51 -0400 Subject: [PATCH] Handle search returning playlists (temp) --- src/components/tasks/MainLoaderTask.brs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/components/tasks/MainLoaderTask.brs b/src/components/tasks/MainLoaderTask.brs index 69175b37..04af0134 100644 --- a/src/components/tasks/MainLoaderTask.brs +++ b/src/components/tasks/MainLoaderTask.brs @@ -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