myanimelist and youporn search works again
This commit is contained in:
parent
8b808b27f5
commit
202013fb9a
@ -1,5 +1,5 @@
|
||||
function getAnime(query)
|
||||
local api = "http://ajax.googleapis.com/ajax/services/search/web?v=1.0&safe=active&hl=de&q=myanimelist"
|
||||
local api = "http://ajax.googleapis.com/ajax/services/search/web?v=1.0&safe=active&hl=de&q=site%3Amyanimelist.net"
|
||||
local parameters = "+".. (URL.escape(query) or "")
|
||||
|
||||
-- Do the request
|
||||
|
@ -11,7 +11,7 @@ function run(msg, matches)
|
||||
end
|
||||
|
||||
function findYouporn(query)
|
||||
local api = "http://ajax.googleapis.com/ajax/services/search/web?v=1.0&q=site:youporn.com+viewkey+" .. query:gsub(" ", "+")
|
||||
local api = "http://ajax.googleapis.com/ajax/services/search/web?v=1.0&q=site%3Ayouporn.com+" .. query:gsub(" ", "+")
|
||||
|
||||
-- Do the request
|
||||
local res, code = https.request(api)
|
||||
|
Reference in New Issue
Block a user