mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-01-16 21:58:21 +01:00
parent
00074b9bfc
commit
d60f0b0e74
@ -15,6 +15,12 @@ class FilterBridge extends FeedExpander
|
|||||||
'exampleValue' => 'https://lorem-rss.herokuapp.com/feed?unit=day',
|
'exampleValue' => 'https://lorem-rss.herokuapp.com/feed?unit=day',
|
||||||
'required' => true,
|
'required' => true,
|
||||||
],
|
],
|
||||||
|
'name' => [
|
||||||
|
'name' => 'Feed name (optional)',
|
||||||
|
'type' => 'text',
|
||||||
|
'exampleValue' => 'My feed',
|
||||||
|
'required' => false,
|
||||||
|
],
|
||||||
'filter' => [
|
'filter' => [
|
||||||
'name' => 'Filter (regular expression!!!)',
|
'name' => 'Filter (regular expression!!!)',
|
||||||
'required' => false,
|
'required' => false,
|
||||||
@ -158,11 +164,18 @@ class FilterBridge extends FeedExpander
|
|||||||
public function getURI()
|
public function getURI()
|
||||||
{
|
{
|
||||||
$url = $this->getInput('url');
|
$url = $this->getInput('url');
|
||||||
|
if ($url) {
|
||||||
if (empty($url)) {
|
return $url;
|
||||||
$url = parent::getURI();
|
|
||||||
}
|
}
|
||||||
|
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