added magnet
Cette révision appartient à :
Parent
516faeb5f5
révision
7e2bb70669
2
main.go
2
main.go
|
@ -144,7 +144,7 @@ func rootHandler(w http.ResponseWriter, r *http.Request) {
|
||||||
for rows.Next() {
|
for rows.Next() {
|
||||||
var id, name, hash, magnet string
|
var id, name, hash, magnet string
|
||||||
rows.Scan(&id, &name, &hash)
|
rows.Scan(&id, &name, &hash)
|
||||||
magnet = "?xt=urn:btih:" + hash + "&dn=" + url.QueryEscape(name) + "&tr=udp://tracker.openbittorrent.com"
|
magnet = "magnet:?xt=urn:btih:" + hash + "&dn=" + url.QueryEscape(name) + "&tr=udp://tracker.openbittorrent.com"
|
||||||
res := Records{
|
res := Records{
|
||||||
Id: id,
|
Id: id,
|
||||||
Name: name,
|
Name: name,
|
||||||
|
|
Référencer dans un nouveau ticket