mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2024-11-22 09:35:28 +03:00
bridges: Return default values for getName and getURI
This commit is contained in:
parent
d4fb02b0d0
commit
f694023f7d
4 changed files with 20 additions and 10 deletions
|
@ -108,6 +108,7 @@ class AnimeUltimeBridge extends BridgeAbstract {
|
|||
}
|
||||
|
||||
public function getName() {
|
||||
if(!is_null($this->getInput('type'))){
|
||||
$typeFilter = array_search(
|
||||
$this->getInput('type'),
|
||||
self::PARAMETERS[$this->queriedContext]['type']['values']
|
||||
|
@ -116,4 +117,7 @@ class AnimeUltimeBridge extends BridgeAbstract {
|
|||
return 'Latest '.$typeFilter.' - Anime-Ultime Bridge';
|
||||
}
|
||||
|
||||
return parent::getName();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -85,6 +85,7 @@ class DailymotionBridge extends BridgeAbstract{
|
|||
case 'From search results':
|
||||
$specific=$this->getInput('s');
|
||||
break;
|
||||
default: return parent::getName();
|
||||
}
|
||||
|
||||
return $specific.' : Dailymotion Bridge';
|
||||
|
|
|
@ -115,10 +115,14 @@ class GBAtempBridge extends BridgeAbstract {
|
|||
}
|
||||
|
||||
public function getName() {
|
||||
if(!is_null($this->getInput('type'))){
|
||||
$type=array_search(
|
||||
$this->getInput('type'),
|
||||
self::PARAMETERS[$this->queriedContext]['type']['values']
|
||||
);
|
||||
return 'GBAtemp '.$type.' Bridge';
|
||||
}
|
||||
|
||||
return parent::getName();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -239,6 +239,7 @@ EOD;
|
|||
case 'Get manga updates':
|
||||
$path = $this->getInput('path');
|
||||
break;
|
||||
default: return parent::getURI();
|
||||
}
|
||||
return self::URI . $path;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue