mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-02-06 07:33:46 +01:00
Fix #7740: CC ratings showing doubled on book info (and mobile browser)
This commit is contained in:
parent
882d16ffd1
commit
6ba2d854fa
1 changed files with 2 additions and 0 deletions
|
|
@ -531,6 +531,8 @@ def format_field_extended(self, key, series_with_index=True):
|
|||
res = format_date(res, cmeta['display'].get('date_format','dd MMM yyyy'))
|
||||
elif datatype == 'bool':
|
||||
res = _('Yes') if res else _('No')
|
||||
elif datatype == 'rating':
|
||||
res = res/2
|
||||
return (name, unicode(res), orig_res, cmeta)
|
||||
|
||||
# Translate aliases into the standard field name
|
||||
|
|
|
|||
Loading…
Reference in a new issue