mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-08-04 18:14:44 +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:
parent
5ad157d2fd
commit
5432cabef5
11 changed files with 45 additions and 45 deletions
|
@ -2,8 +2,8 @@
|
|||
class ShanaprojectBridge extends BridgeAbstract {
|
||||
public function loadMetadatas() {
|
||||
$this->maintainer = 'logmanoriginal';
|
||||
$this->name = $this->getName();
|
||||
$this->uri = $this->getURI();
|
||||
$this->name = 'Shanaproject Bridge';
|
||||
$this->uri = 'http://www.shanaproject.com';
|
||||
$this->description = 'Returns a list of anime from the current Season Anime List';
|
||||
$this->update = '2016-08-06';
|
||||
}
|
||||
|
@ -111,10 +111,10 @@ class ShanaprojectBridge extends BridgeAbstract {
|
|||
}
|
||||
|
||||
public function getName(){
|
||||
return 'Shanaproject Bridge';
|
||||
return $this->name;
|
||||
}
|
||||
|
||||
public function getURI(){
|
||||
return 'http://www.shanaproject.com';
|
||||
return $this->uri;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue