1
0
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:
Bockiii 2021-10-19 05:23:38 +02:00 committed by GitHub
parent bdf15c3ce0
commit 8d0fc54e4d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);
}
}