myanimelist with 1 result

you can set number of results
This commit is contained in:
Akamaru 2015-06-07 22:51:36 +02:00
parent a752cabca5
commit aa2db63a62
1 changed files with 2 additions and 1 deletions

View File

@ -1,5 +1,6 @@
function getAnime(query)
local api = "http://ajax.googleapis.com/ajax/services/search/web?v=1.0&safe=active&hl=de&q=site%3Amyanimelist.net"
local number = 1 -- Set number of results
local api = "http://ajax.googleapis.com/ajax/services/search/web?v=1.0&safe=active&hl=de&rsz="..number.."&q=site%3Amyanimelist.net"
local parameters = "+".. (URL.escape(query) or "")
-- Do the request