mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-08-25 17:31:25 +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:
@@ -4,8 +4,8 @@ class ZoneTelechargementBridge extends BridgeAbstract {
|
||||
public function loadMetadatas() {
|
||||
|
||||
$this->maintainer = 'ORelio';
|
||||
$this->name = $this->getName();
|
||||
$this->uri = $this->getURI();
|
||||
$this->name = 'Zone Telechargement Bridge';
|
||||
$this->uri = 'https://www.zone-telechargement.com/';
|
||||
$this->description = 'RSS proxy returning the newest releases.<br />You may specify a category found in RSS URLs, else main feed is selected.';
|
||||
$this->update = "2016-08-06";
|
||||
|
||||
@@ -45,10 +45,10 @@ class ZoneTelechargementBridge extends BridgeAbstract {
|
||||
}
|
||||
|
||||
public function getName() {
|
||||
return 'Zone Telechargement Bridge';
|
||||
return $this->name;
|
||||
}
|
||||
|
||||
public function getURI() {
|
||||
return 'https://www.zone-telechargement.com/';
|
||||
return $this->uri;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user