Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/jikan-me/jikan
Browse files Browse the repository at this point in the history
  • Loading branch information
Irfan committed Sep 16, 2020
2 parents f4f1521 + 1ee29cb commit d6b281f
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 d6b281f

Please sign in to comment.