mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-01-16 13:50:01 +01:00
parent
00074b9bfc
commit
d60f0b0e74
@ -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();
|
||||
}
|
||||
|
||||
return $url;
|
||||
public function getName()
|
||||
{
|
||||
$name = $this->getInput('name');
|
||||
if ($name) {
|
||||
return $name;
|
||||
}
|
||||
return parent::getName();
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user