myanimelist and youporn search works again

This commit is contained in:
Akamaru 2015-05-07 19:48:49 +02:00
parent 8b808b27f5
commit 202013fb9a
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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)