From e85109b8502813d19949c8f36f8807853dde9640 Mon Sep 17 00:00:00 2001 From: admin Date: Sun, 29 Oct 2023 08:59:28 +1000 Subject: [PATCH] Switch to use the SDK, remove unnecessary comment --- source/api/Items.brs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/source/api/Items.brs b/source/api/Items.brs index 2026681e1..1fc244821 100644 --- a/source/api/Items.brs +++ b/source/api/Items.brs @@ -37,11 +37,8 @@ end function ' Search across all libraries function searchMedia(query as string) - ' This appears to be done differently on the web now - ' For each potential type, a separate query is done: - ' varying item types, and artists, and people if query <> "" - resp = APIRequest(Substitute("Users/{0}/Items", m.global.session.user.id), { + data = api.users.GetItemsByQuery(m.global.session.user.id, { "searchTerm": query, "IncludePeople": true, "IncludeMedia": true, @@ -56,7 +53,6 @@ function searchMedia(query as string) "limit": 100 }) - data = getJson(resp) results = [] for each item in data.Items tmp = CreateObject("roSGNode", "SearchData")