mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-01-17 14:18:35 +01:00
[FSecureBlogBridge] Limit number of returned items (#2300)
This commit is contained in:
parent
bdf15c3ce0
commit
8d0fc54e4d
@ -60,6 +60,10 @@ class FSecureBlogBridge extends BridgeAbstract {
|
||||
private function collectCategory($category) {
|
||||
$url = $this->getURI() . "/category/$category/";
|
||||
while ($url) {
|
||||
//Limit total amount of requests
|
||||
if(count($this->items) >= 20) {
|
||||
break;
|
||||
}
|
||||
$url = $this->collectListing($url);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user