mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix #7740: CC ratings showing doubled on book info (and mobile browser)
This commit is contained in:
parent
882d16ffd1
commit
6ba2d854fa
@ -531,6 +531,8 @@ class Metadata(object):
|
|||||||
res = format_date(res, cmeta['display'].get('date_format','dd MMM yyyy'))
|
res = format_date(res, cmeta['display'].get('date_format','dd MMM yyyy'))
|
||||||
elif datatype == 'bool':
|
elif datatype == 'bool':
|
||||||
res = _('Yes') if res else _('No')
|
res = _('Yes') if res else _('No')
|
||||||
|
elif datatype == 'rating':
|
||||||
|
res = res/2
|
||||||
return (name, unicode(res), orig_res, cmeta)
|
return (name, unicode(res), orig_res, cmeta)
|
||||||
|
|
||||||
# Translate aliases into the standard field name
|
# Translate aliases into the standard field name
|
||||||
|
Loading…
x
Reference in New Issue
Block a user