Adding missing pubDate.
This commit is contained in:
parent
f311605ae3
commit
2d360a66a3
|
@ -56,6 +56,7 @@ class RssGenerator
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO feed pagination
|
// TODO feed pagination
|
||||||
|
// @see https://tools.ietf.org/html/rfc5005#section-3
|
||||||
|
|
||||||
return $feed;
|
return $feed;
|
||||||
}
|
}
|
||||||
|
@ -101,6 +102,7 @@ class RssGenerator
|
||||||
$item
|
$item
|
||||||
->title($torrent->getName())
|
->title($torrent->getName())
|
||||||
->description($torrent->getInfoHash())
|
->description($torrent->getInfoHash())
|
||||||
|
->pubDate($torrent->getDiscoveredOn())
|
||||||
->url($this->generateUrl('torrents_show', ['id' => $torrent->getId()]))
|
->url($this->generateUrl('torrents_show', ['id' => $torrent->getId()]))
|
||||||
->enclosure(
|
->enclosure(
|
||||||
$this->magnetGenerator->generate($torrent->getInfoHash(), $torrent->getName()),
|
$this->magnetGenerator->generate($torrent->getInfoHash(), $torrent->getName()),
|
||||||
|
|
Loading…
Reference in a new issue