This commit is contained in:
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") isempty(q) && return missing_parameter("query")
if length(q) > 2 && q[end-1:end] == "!t" if length(q) > 2 && q[end-1:end] == "!t"
@info "This is the special torrent mode!" @info "This is the special torrent mode!"
dlfunc(string(strip(q[1:end-2]))) dl(string(strip(q[1:end-2])))
end end
songCount = parse(Int, get(query, "songCount", "20")) songCount = parse(Int, get(query, "songCount", "20"))
# TODO: # TODO:

View File

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