Skip to content

Commit

Permalink
fix: add previously known regex for rating_votes
Browse files Browse the repository at this point in the history
  • Loading branch information
hmerritt committed Jul 8, 2024
1 parent ca6d60e commit b7b5a4f
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 @@ -118,7 +118,7 @@ public function get(object $page, string $element, string $url='')
break;

case "rating_votes":
$patterns = [".sc-eb51e184-3", "[class*=TotalRatingAmount]", ".ratings_wrapper span[itemprop=ratingCount]"];
$patterns = [".sc-eb51e184-3", ".sc-bde20123-3", "[class*=TotalRatingAmount]", ".ratings_wrapper span[itemprop=ratingCount]"];
$rating_votes = $this->findMatchInPatterns($dom, $page, $patterns);
$rating_votes = $this->unwrapFormattedNumber($rating_votes);

Expand Down

0 comments on commit b7b5a4f

Please sign in to comment.