mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-04-08 16:08:54 +00:00
Return items starting at the end, not the beginning when working with limits
This commit is contained in:
parent
2e4e0077a8
commit
0e1b84263e
@ -96,7 +96,7 @@ class MangareaderBridge extends BridgeAbstract{
|
|||||||
$query = "(.//*[@id='listing']//tr)[position() > 1]";
|
$query = "(.//*[@id='listing']//tr)[position() > 1]";
|
||||||
|
|
||||||
if($limit !== -1){
|
if($limit !== -1){
|
||||||
$query = "(.//*[@id='listing']//tr)[position() > 1][position() <= " . $limit . "]";
|
$query = "(.//*[@id='listing']//tr)[position() > 1][position() > last() - " . $limit . "]";
|
||||||
}
|
}
|
||||||
|
|
||||||
$chapters = $xpath->query($query);
|
$chapters = $xpath->query($query);
|
||||||
|
Loading…
Reference in New Issue
Block a user