[ShanaprojectBridge] Return url to current season

This commit is contained in:
logmanoriginal 2019-07-02 20:46:38 +02:00
parent 465cd8c768
commit 2ea8d73ac1

View file

@ -5,6 +5,12 @@ class ShanaprojectBridge extends BridgeAbstract {
const URI = 'https://www.shanaproject.com'; const URI = 'https://www.shanaproject.com';
const DESCRIPTION = 'Returns a list of anime from the current Season Anime List'; const DESCRIPTION = 'Returns a list of anime from the current Season Anime List';
private $uri;
public function getURI() {
return isset($this->uri) ? $this->uri : parent::getURI();
}
public function collectData(){ public function collectData(){
$html = $this->loadSeasonAnimeList(); $html = $this->loadSeasonAnimeList();
@ -40,6 +46,8 @@ class ShanaprojectBridge extends BridgeAbstract {
. '\'!' . '\'!'
); );
$this->uri = $season->href;
$html = defaultLinkTo($html, $season->href); $html = defaultLinkTo($html, $season->href);
return $html; return $html;