mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-08-13 03:54:04 +02:00
bridges: Put name/uri directly in bridge metadata
Some bridges used getName() and getURI() to put information into the metadatas. Instead the metadatas should be initialized with data and (not yet done) returned by default via getName() and getURI().
This commit is contained in:
@@ -5,10 +5,10 @@ class LichessBridge extends BridgeAbstract
|
||||
public function loadMetadatas()
|
||||
{
|
||||
$this->maintainer = 'AmauryCarrade';
|
||||
$this->name = $this->getName() . ' Bridge';
|
||||
$this->uri = $this->getURI();
|
||||
$this->name = 'Lichess Blog';
|
||||
$this->uri = 'http://lichess.org/blog';
|
||||
$this->description = 'Returns the 5 newest posts from the Lichess blog (full text)';
|
||||
$this->update = "2016-03-22";
|
||||
$this->update = "2016-08-06";
|
||||
}
|
||||
|
||||
public function collectData(array $param)
|
||||
@@ -51,11 +51,11 @@ class LichessBridge extends BridgeAbstract
|
||||
|
||||
public function getName()
|
||||
{
|
||||
return 'Lichess Blog';
|
||||
return $this->name;
|
||||
}
|
||||
|
||||
public function getURI()
|
||||
{
|
||||
return 'http://lichess.org/blog';
|
||||
return $this->uri;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user