Skip to content

Commit

Permalink
Chore(metadata): add rating count
Browse files Browse the repository at this point in the history
  • Loading branch information
xjasonlyu committed Dec 17, 2023
1 parent 29977f3 commit 4627b2f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions MetaTube.bundle/Contents/Code/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -338,6 +338,7 @@ def update(self, metadata, media, lang, force=False):

# Audience Rating
scores = [i.score for i in reviews if i.score > 0]
metadata.rating_count = len(scores)
metadata.audience_rating = utils.average(scores) * 2
metadata.audience_rating_image = self.get_audience_rating_image(metadata.audience_rating)

Expand Down

0 comments on commit 4627b2f

Please sign in to comment.