mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-08-03 23:27:32 +02:00
[FSecureBlogBridge] Limit number of returned items (#2300)
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user