parse rss in reverse to respect timing

This commit is contained in:
quenousimporte 2024-09-05 14:08:06 +02:00
parent dc707dcf1e
commit 9a52832348
1 changed files with 2 additions and 2 deletions

View File

@ -396,7 +396,7 @@
$xml = new SimpleXMLElement($feed);
$items = $xml->xpath("/rss/channel/item");
foreach ($items as $item)
foreach (array_reverse($items) as $item)
{
add_mp_article($item->link, $context, $epub);
}
@ -518,7 +518,7 @@
$xml = new SimpleXMLElement($feed);
$items = $xml->xpath("/rss/channel/item");
foreach ($items as $item)
foreach (array_reverse($items) as $item)
{
$title = $item->title;
$author = $item->xpath('dc:creator')[0];