Skip to content

Commit

Permalink
Fix rating match pattern
Browse files Browse the repository at this point in the history
  • Loading branch information
hmerritt committed Jun 3, 2021
1 parent 96108c2 commit fb24190
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/HtmlPieces.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ public function get(object $page, string $element)
break;

case "rating":
$patterns = ["main div[data-testid=hero-title-block__aggregate-rating__score]", ".ratings_wrapper .ratingValue span[itemprop=ratingValue]"];
$patterns = ["main div[data-testid=hero-title-block__aggregate-rating__score] span", ".ratings_wrapper .ratingValue span[itemprop=ratingValue]"];
$rating = $this->findMatchInPatterns($dom, $page, $patterns);

return $this->strClean($rating);
Expand Down

0 comments on commit fb24190

Please sign in to comment.