From 87e24e7a983dec50262079425a98c11f14656b94 Mon Sep 17 00:00:00 2001 From: Deckvig <2008.zhengxing@gmail.com> Date: Thu, 28 Oct 2021 13:57:05 +0800 Subject: [PATCH] Update amazon.py fix get ratings fail in amazon.cn --- src/calibre/ebooks/metadata/sources/amazon.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calibre/ebooks/metadata/sources/amazon.py b/src/calibre/ebooks/metadata/sources/amazon.py index c3da51dc58..348ebf1fea 100644 --- a/src/calibre/ebooks/metadata/sources/amazon.py +++ b/src/calibre/ebooks/metadata/sources/amazon.py @@ -316,7 +316,7 @@ class Worker(Thread): # Get details {{{ r'([0-9.,]+) ?(out of|von|van|su|étoiles sur|つ星のうち|de un máximo de|de|av) ' r'([\d\.]+)( (stars|Sternen|stelle|estrellas|estrelas|sterren|stjärnor)){0,1}' ) - self.ratings_pat_cn = re.compile('平均([0-9.]+)') + self.ratings_pat_cn = re.compile('([0-9.]+) 颗星,最多 5 颗星') self.ratings_pat_jp = re.compile(r'\d+つ星のうち([\d\.]+)') lm = {