fixup
This commit is contained in:
parent
41f8406a59
commit
6c14dbb592
|
@ -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:
|
||||||
|
|
|
@ -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(
|
||||||
|
|
Loading…
Reference in New Issue