mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-04-09 16:38:50 +00: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) {
|
private function collectCategory($category) {
|
||||||
$url = $this->getURI() . "/category/$category/";
|
$url = $this->getURI() . "/category/$category/";
|
||||||
while ($url) {
|
while ($url) {
|
||||||
|
//Limit total amount of requests
|
||||||
|
if(count($this->items) >= 20) {
|
||||||
|
break;
|
||||||
|
}
|
||||||
$url = $this->collectListing($url);
|
$url = $this->collectListing($url);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user