Skip to content

Commit

Permalink
Merge pull request #322 from Chortowod/patch-1 [ci skip]
Browse files Browse the repository at this point in the history
Update AnimeParser.php
  • Loading branch information
irfan-dahir authored Sep 16, 2020
2 parents 79f2a95 + 1f80de7 commit 1ee29cb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Parser/Anime/AnimeParser.php
Original file line number Diff line number Diff line change
Expand Up @@ -587,7 +587,7 @@ public function getBackground(): ?string
*/
public function getOpeningThemes(): array
{
return $this->crawler->filterXPath('//div[@class="theme-songs js-theme-songs opnening"]/span[@class="theme-song"]')
return $this->crawler->filterXPath('//div[@class="theme-songs js-theme-songs opnening"]//span[@class="theme-song"]')
->each(function (Crawler $crawler) {
return $crawler->text();
});
Expand All @@ -600,7 +600,7 @@ public function getOpeningThemes(): array
*/
public function getEndingThemes(): array
{
return $this->crawler->filterXPath('//div[@class="theme-songs js-theme-songs ending"]/span[@class="theme-song"]')
return $this->crawler->filterXPath('//div[@class="theme-songs js-theme-songs ending"]//span[@class="theme-song"]')
->each(function (Crawler $crawler) {
return $crawler->text();
});
Expand Down

0 comments on commit 1ee29cb

Please sign in to comment.