Albirew/nyaa-pantsu
Albirew
/
nyaa-pantsu
Archivé
1
0
Bifurcation 0

Merge pull request #1 from ayame-git/master

removed extra magnet
Cette révision appartient à :
Eliot Whalan 2017-05-03 13:41:10 +10:00 révisé par GitHub
révision 2a20e3bd6e
2 fichiers modifiés avec 2 ajouts et 2 suppressions

Voir le fichier

@ -55,7 +55,7 @@
<tr>
<td>{{.Name}}</td>
<td>{{.Hash}}</td>
<td><a href="magnet:{{.Magnet}}"><span class="glyphicon glyphicon-magnet" aria-hidden="true"></span></a>
<td><a href="{{.Magnet}}"><span class="glyphicon glyphicon-magnet" aria-hidden="true"></span></a>
<a href="http://torcache.net/torrent/{{.Hash}}.torrent"><span class="glyphicon glyphicon-floppy-save" aria-hidden="true"></span></a>
</td>

Voir le fichier

@ -144,7 +144,7 @@ func rootHandler(w http.ResponseWriter, r *http.Request) {
for rows.Next() {
var id, name, hash, magnet string
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{
Id: id,
Name: name,