Fix pubdate hopefully (#1410)
Cette révision appartient à :
Parent
3f709f571b
révision
489c3196c4
3 fichiers modifiés avec 6 ajouts et 3 suppressions
|
@ -4,6 +4,7 @@ import (
|
|||
"net/http"
|
||||
"strconv"
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
"github.com/NyaaPantsu/nyaa/config"
|
||||
"github.com/NyaaPantsu/nyaa/utils/feeds"
|
||||
|
@ -38,7 +39,7 @@ func RSSEztvHandler(c *gin.Context) {
|
|||
},
|
||||
Description: string(torrentJSON.Description),
|
||||
Comments: config.WebAddress() + "/view/" + strconv.FormatUint(uint64(torrentJSON.ID), 10),
|
||||
PubDate: torrent.Date.Format("Mon Jan 02 15:04:05 -0700 2006"),
|
||||
PubDate: torrent.Date.Format(time.RFC1123Z),
|
||||
GUID: config.WebAddress() + "/view/" + strconv.FormatUint(uint64(torrentJSON.ID), 10),
|
||||
Enclosure: &nyaafeeds.RssEnclosure{
|
||||
URL: config.WebAddress() + "/download/" + strings.TrimSpace(torrentJSON.Hash),
|
||||
|
|
|
@ -4,6 +4,7 @@ import (
|
|||
"net/http"
|
||||
"strconv"
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
"github.com/NyaaPantsu/nyaa/config"
|
||||
"github.com/NyaaPantsu/nyaa/utils/feeds"
|
||||
|
@ -35,7 +36,7 @@ func RSSMagnetHandler(c *gin.Context) {
|
|||
Title: torrentJSON.Name,
|
||||
Link: &nyaafeeds.RssMagnetLink{Text: string(torrentJSON.Magnet)},
|
||||
Description: string(torrentJSON.Description),
|
||||
PubDate: torrent.Date.Format("Mon Jan 02 15:04:05 -0700 2006"),
|
||||
PubDate: torrent.Date.Format(time.RFC1123Z),
|
||||
GUID: config.WebAddress() + "/view/" + strconv.FormatUint(uint64(torrentJSON.ID), 10),
|
||||
Enclosure: &nyaafeeds.RssEnclosure{
|
||||
URL: config.WebAddress() + "/download/" + strings.TrimSpace(torrentJSON.Hash),
|
||||
|
|
|
@ -4,6 +4,7 @@ import (
|
|||
"net/http"
|
||||
"strconv"
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
"github.com/NyaaPantsu/nyaa/config"
|
||||
"github.com/NyaaPantsu/nyaa/utils/feeds"
|
||||
|
@ -35,7 +36,7 @@ func RSSHandler(c *gin.Context) {
|
|||
Title: torrentJSON.Name,
|
||||
Link: config.WebAddress() + "/download/" + torrentJSON.Hash,
|
||||
Description: string(torrentJSON.Description),
|
||||
PubDate: torrent.Date.Format("Mon Jan 02 15:04:05 -0700 2006"),
|
||||
PubDate: torrent.Date.Format(time.RFC1123Z),
|
||||
GUID: config.WebAddress() + "/view/" + strconv.FormatUint(uint64(torrentJSON.ID), 10),
|
||||
Enclosure: &nyaafeeds.RssEnclosure{
|
||||
URL: config.WebAddress() + "/download/" + strings.TrimSpace(torrentJSON.Hash),
|
||||
|
|
Référencer dans un nouveau ticket