diff --git a/bridges/ShanaprojectBridge.php b/bridges/ShanaprojectBridge.php index 759216d4..70631084 100644 --- a/bridges/ShanaprojectBridge.php +++ b/bridges/ShanaprojectBridge.php @@ -5,6 +5,12 @@ class ShanaprojectBridge extends BridgeAbstract { const URI = 'https://www.shanaproject.com'; 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(){ $html = $this->loadSeasonAnimeList(); @@ -40,6 +46,8 @@ class ShanaprojectBridge extends BridgeAbstract { . '\'!' ); + $this->uri = $season->href; + $html = defaultLinkTo($html, $season->href); return $html;