Skip to content

Commit

Permalink
[ShanaprojectBridge] Return url to current season
Browse files Browse the repository at this point in the history
  • Loading branch information
logmanoriginal committed Jul 2, 2019
1 parent 465cd8c commit 2ea8d73
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions bridges/ShanaprojectBridge.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down Expand Up @@ -40,6 +46,8 @@ private function loadSeasonAnimeList(){
. '\'!'
);

$this->uri = $season->href;

$html = defaultLinkTo($html, $season->href);

return $html;
Expand Down

0 comments on commit 2ea8d73

Please sign in to comment.