Skip to content

Commit

Permalink
Switch to use the SDK, remove unnecessary comment
Browse files Browse the repository at this point in the history
  • Loading branch information
matty-r committed Oct 28, 2023
1 parent 0f5fb7e commit e85109b
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions source/api/Items.brs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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")
Expand Down

0 comments on commit e85109b

Please sign in to comment.