bridges: Return default values for getName and getURI

This commit is contained in:
logmanoriginal 2016-12-17 17:03:09 +01:00
parent d4fb02b0d0
commit f694023f7d
4 changed files with 20 additions and 10 deletions

View File

@ -108,12 +108,16 @@ class AnimeUltimeBridge extends BridgeAbstract {
} }
public function getName() { public function getName() {
$typeFilter = array_search( if(!is_null($this->getInput('type'))){
$this->getInput('type'), $typeFilter = array_search(
self::PARAMETERS[$this->queriedContext]['type']['values'] $this->getInput('type'),
); self::PARAMETERS[$this->queriedContext]['type']['values']
);
return 'Latest '.$typeFilter.' - Anime-Ultime Bridge'; return 'Latest '.$typeFilter.' - Anime-Ultime Bridge';
}
return parent::getName();
} }
} }

View File

@ -85,6 +85,7 @@ class DailymotionBridge extends BridgeAbstract{
case 'From search results': case 'From search results':
$specific=$this->getInput('s'); $specific=$this->getInput('s');
break; break;
default: return parent::getName();
} }
return $specific.' : Dailymotion Bridge'; return $specific.' : Dailymotion Bridge';

View File

@ -115,10 +115,14 @@ class GBAtempBridge extends BridgeAbstract {
} }
public function getName() { public function getName() {
$type=array_search( if(!is_null($this->getInput('type'))){
$this->getInput('type'), $type=array_search(
self::PARAMETERS[$this->queriedContext]['type']['values'] $this->getInput('type'),
); self::PARAMETERS[$this->queriedContext]['type']['values']
return 'GBAtemp '.$type.' Bridge'; );
return 'GBAtemp '.$type.' Bridge';
}
return parent::getName();
} }
} }

View File

@ -239,6 +239,7 @@ EOD;
case 'Get manga updates': case 'Get manga updates':
$path = $this->getInput('path'); $path = $this->getInput('path');
break; break;
default: return parent::getURI();
} }
return self::URI . $path; return self::URI . $path;
} }