parse rss in reverse to respect timing
This commit is contained in:
parent
dc707dcf1e
commit
9a52832348
4
epub.php
4
epub.php
|
@ -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];
|
||||
|
|
Loading…
Reference in New Issue