mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-08-14 04:24:05 +02:00
feat: add limit options to the slowest bridges
This commit is contained in:
@@ -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){
|
||||
|
Reference in New Issue
Block a user