Skip to content

Commit fb24190

Browse files
committed
Fix rating match pattern
1 parent 96108c2 commit fb24190

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/HtmlPieces.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ public function get(object $page, string $element)
7777
break;
7878

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

8383
return $this->strClean($rating);

0 commit comments

Comments
 (0)