From 4627b2f3c1744f00e7e35c159cc4d54dbd3cfc1a Mon Sep 17 00:00:00 2001 From: xjasonlyu Date: Sun, 17 Dec 2023 17:09:56 -0500 Subject: [PATCH] Chore(metadata): add rating count --- MetaTube.bundle/Contents/Code/__init__.py | 1 + 1 file changed, 1 insertion(+) diff --git a/MetaTube.bundle/Contents/Code/__init__.py b/MetaTube.bundle/Contents/Code/__init__.py index 34f044a..0d5b1f1 100644 --- a/MetaTube.bundle/Contents/Code/__init__.py +++ b/MetaTube.bundle/Contents/Code/__init__.py @@ -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)