Skip to content

Commit

Permalink
Fix anime background information returning null [ci skip]
Browse files Browse the repository at this point in the history
  • Loading branch information
irfan-dahir committed Jun 27, 2021
1 parent fb75417 commit b896e68
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Parser/Anime/AnimeParser.php
Original file line number Diff line number Diff line change
Expand Up @@ -568,7 +568,8 @@ function (Crawler $c) {
*/
public function getBackground(): ?string
{
$background = Parser::removeChildNodes($this->crawler->filterXPath('//span[@itemprop="description"]/..'));
$background = Parser::removeChildNodes($this->crawler->filterXPath('//p[@itemprop="description"]/..'));

if (!$background->count()) {
return null;
}
Expand Down

0 comments on commit b896e68

Please sign in to comment.