Albirew/nyaa-pantsu
Archivé
1
0
Bifurcation 0

Add links to /view/1234 page in RSS feed

Cette révision appartient à :
sfan5 2017-05-05 18:43:48 +02:00
Parent 19d6a53b7d
révision 49dbadbe5b

Voir le fichier

@ -206,8 +206,7 @@ func rssHandler(w http.ResponseWriter, r *http.Request) {
timestamp_as_time := time.Unix(torrents[0].Date, 0)
torrent_json := torrents[i].ToJson()
feed.Items[i] = &feeds.Item{
// need a torrent view first
//Id: URL + torrents[i].Hash,
Id: "https://nyaa.pantsu.cat/view/" + strconv.Itoa(torrents[i].Id),
Title: torrents[i].Name,
Link: &feeds.Link{Href: string(torrent_json.Magnet)},
Description: "",