Merge branch 'master' of github.com:ewhal/nyaa
Cette révision appartient à :
révision
f7dd28387a
3 fichiers modifiés avec 23 ajouts et 2 suppressions
21
README.md
Fichier normal
21
README.md
Fichier normal
|
@ -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
|
|
@ -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>
|
||||
|
||||
|
|
2
main.go
2
main.go
|
@ -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,
|
||||
|
|
Référencer dans un nouveau ticket