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 b23b69ec8e
révision 5d9d9273a6

Voir le fichier

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