Switch to use the SDK, remove unnecessary comment
This commit is contained in:
parent
0f5fb7e45d
commit
e85109b850
|
@ -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")
|
||||
|
|
Loading…
Reference in New Issue
Block a user