Torrent Plugin Fix; Ignoriere myfigurecollection in url_title
This commit is contained in:
parent
b8a220685a
commit
07fd686364
@ -3,6 +3,8 @@
|
||||
|
||||
do
|
||||
|
||||
require("./plugins/time")
|
||||
|
||||
local function set_location(user_id, location)
|
||||
local hash = 'user:'..user_id
|
||||
local set_location = get_location(user_id)
|
||||
@ -40,6 +42,9 @@ local function run(msg, matches)
|
||||
if not set_location then
|
||||
return 'Du hast keinen Ort gesetzt'
|
||||
else
|
||||
local lat,lng = get_latlong(set_location)
|
||||
local receiver = get_receiver(msg)
|
||||
send_location(receiver, lat, lng, ok_cb, false)
|
||||
return 'Gesetzter Wohnort: '..set_location
|
||||
end
|
||||
end
|
||||
|
@ -1,7 +1,21 @@
|
||||
local function search_kickass(query)
|
||||
local url = 'http://kat.cr/json.php?q='..URL.escape(query)
|
||||
local b,c = http.request(url)
|
||||
local data = json:decode(b)
|
||||
local https = require ('ssl.https')
|
||||
local ltn12 = require ("ltn12")
|
||||
|
||||
local function search_kickass(query)
|
||||
local url = 'https://kat.cr/json.php?q='..URL.escape(query)
|
||||
|
||||
local resp = {}
|
||||
|
||||
local b,c = https.request
|
||||
{
|
||||
url = url,
|
||||
protocol = "tlsv1",
|
||||
sink = ltn12.sink.table(resp)
|
||||
}
|
||||
|
||||
resp = table.concat(resp)
|
||||
|
||||
local data = json:decode(resp)
|
||||
|
||||
local text = 'Results: '..data.total_results..'\n\n'
|
||||
local results = math.min(#data.list, 5)
|
||||
|
@ -95,6 +95,7 @@ function run(msg, matches)
|
||||
string.match(msg.text, "wikia.com") or
|
||||
string.match(msg.text, "rule34.xxx/index.php") or
|
||||
string.match(msg.text, "openings.moe/%?video") or
|
||||
string.match(msg.text, "myfigurecollection.net") or
|
||||
string.match(msg.text, "dropbox.com/s/") then
|
||||
print('Ungültig, da "'..title..'"')
|
||||
else
|
||||
|
Reference in New Issue
Block a user