From 49dbadbe5b9050c22dbbcffc6e6cc7bb28cd34bf Mon Sep 17 00:00:00 2001 From: sfan5 Date: Fri, 5 May 2017 18:43:48 +0200 Subject: [PATCH] Add links to /view/1234 page in RSS feed --- main.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/main.go b/main.go index 7d16f8af..c28f4010 100644 --- a/main.go +++ b/main.go @@ -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: "",