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

Merge branch 'master' of github.com:ewhal/nyaa

Cette révision appartient à :
Eliot Whalan 2017-05-03 13:47:24 +10:00
révision 5387496124
3 fichiers modifiés avec 23 ajouts et 2 suppressions

21
README.md Fichier normal
Voir le fichier

@ -0,0 +1,21 @@
# Nyaa replacement
## Motivation
The aim of this project is to write a fully featured nyaa replacement in golang
that anyone will be able to deploy locally or remotely.
# Requirements
* Golang
## TODO
* Tidy up JS and code
* RSS feeds
* Adding new torrents
* Category searching
* Torrent status display
* Daily DB dumps
* p2p sync of dbs?
# LICENSE
This project is licensed under the MIT License - see the LICENSE.md file for details

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,