[ShanaprojectBridge] Return url to current season
This commit is contained in:
parent
465cd8c768
commit
2ea8d73ac1
1 changed files with 8 additions and 0 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue