From 2d360a66a34422f54c6fdea0359b6f79f01a36a2 Mon Sep 17 00:00:00 2001 From: Alexey Skobkin Date: Sat, 4 Apr 2020 03:37:08 +0300 Subject: [PATCH] Adding missing pubDate. --- src/Feed/RssGenerator.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Feed/RssGenerator.php b/src/Feed/RssGenerator.php index c1f4976..39239a0 100644 --- a/src/Feed/RssGenerator.php +++ b/src/Feed/RssGenerator.php @@ -56,6 +56,7 @@ class RssGenerator } // TODO feed pagination + // @see https://tools.ietf.org/html/rfc5005#section-3 return $feed; } @@ -101,6 +102,7 @@ class RssGenerator $item ->title($torrent->getName()) ->description($torrent->getInfoHash()) + ->pubDate($torrent->getDiscoveredOn()) ->url($this->generateUrl('torrents_show', ['id' => $torrent->getId()])) ->enclosure( $this->magnetGenerator->generate($torrent->getInfoHash(), $torrent->getName()),