From bf6f61780084174155648ccb642f258b6dd52be2 Mon Sep 17 00:00:00 2001 From: Roman Mukhin Date: Mon, 16 Dec 2019 15:07:16 +0100 Subject: [PATCH] Added currency symbol for RUB --- src/calibre/gui2/store/stores/litres_plugin.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/calibre/gui2/store/stores/litres_plugin.py b/src/calibre/gui2/store/stores/litres_plugin.py index 89d500c877..fc5b943e47 100644 --- a/src/calibre/gui2/store/stores/litres_plugin.py +++ b/src/calibre/gui2/store/stores/litres_plugin.py @@ -85,7 +85,7 @@ class LitResStore(BasicStoreConfig, StorePlugin): sRes = SearchResult() sRes.drm = SearchResult.DRM_UNLOCKED - sRes.detail_item = data.xpath(xp_template.format('hub_id')) + sRes.detail_item = data.xpath(xp_template.format('hub_id')) sRes.title = data.xpath('string(.//title-info/book-title/text()|.//publish-info/book-name/text())') # aut = concat('.//title-info/author/first-name', ' ') authors = data.xpath('.//title-info/author/first-name/text()|' @@ -112,7 +112,7 @@ def format_price_in_RUR(price): ''' if price and re.match(r"^\d*?\.\d*?$", price): try: - price = u'{:,.2F} руб.'.format(float(price)) + price = u'{:,.2F} \u20BD'.format(float(price)) # \u20BD => руб. price = price.replace(',', ' ').replace('.', ',', 1) except: pass