feat: add limit options to the slowest bridges

This commit is contained in:
dag 2022-04-10 18:56:24 +02:00 committed by GitHub
parent 0b40f51c01
commit 5a733b3d82
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
13 changed files with 80 additions and 20 deletions

View file

@ -22,7 +22,8 @@ class WiredBridge extends FeedExpander {
'WIRED Guides' => 'wired-guide', // /feed/tag/wired-guide/latest/rss
'Photo' => 'photo' // /feed/category/photo/latest/rss
)
)
),
'limit' => self::LIMIT,
));
public function collectData(){
@ -42,7 +43,8 @@ class WiredBridge extends FeedExpander {
}
$feed_url .= 'rss';
$this->collectExpandableDatas($feed_url);
$limit = $this->getInput('limit') ?? -1;
$this->collectExpandableDatas($feed_url, $limit);
}
protected function parseItem($newsItem){