1
0
mirror of https://github.com/RSS-Bridge/rss-bridge.git synced 2025-01-16 21:58:21 +01:00

feat(FilterBridge): custom feed name parameter (#4136)

fix #4100
This commit is contained in:
Dag 2024-06-18 21:12:29 +02:00 committed by GitHub
parent 00074b9bfc
commit d60f0b0e74
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -15,6 +15,12 @@ class FilterBridge extends FeedExpander
'exampleValue' => 'https://lorem-rss.herokuapp.com/feed?unit=day',
'required' => true,
],
'name' => [
'name' => 'Feed name (optional)',
'type' => 'text',
'exampleValue' => 'My feed',
'required' => false,
],
'filter' => [
'name' => 'Filter (regular expression!!!)',
'required' => false,
@ -158,11 +164,18 @@ class FilterBridge extends FeedExpander
public function getURI()
{
$url = $this->getInput('url');
if (empty($url)) {
$url = parent::getURI();
}
if ($url) {
return $url;
}
return parent::getURI();
}
public function getName()
{
$name = $this->getInput('name');
if ($name) {
return $name;
}
return parent::getName();
}
}