master
nixo 2019-05-21 15:59:25 +02:00
parent 41f8406a59
commit 6c14dbb592
2 changed files with 2 additions and 2 deletions

View File

@ -313,7 +313,7 @@ function search3(req; dl = println)
isempty(q) && return missing_parameter("query")
if length(q) > 2 && q[end-1:end] == "!t"
@info "This is the special torrent mode!"
dlfunc(string(strip(q[1:end-2])))
dl(string(strip(q[1:end-2])))
end
songCount = parse(Int, get(query, "songCount", "20"))
# TODO:

View File

@ -10,7 +10,7 @@ function torrentdl(query::AbstractString)
global rpc, me
TransmissionRPC.getauth(rpc)
todl = RuTrackers.getdiscography(me, query)
add.(Ref(rpc), RuTrackers.download.(Ref(me), todl))
TransmissionRPC.add.(Ref(rpc), RuTrackers.download.(Ref(me), todl))
end
dispatch = stack(