ebook-meta --rating fails

Bug #1901113 reported by Poco Coco
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
calibre
Undecided
Unassigned

Bug Description

when
ebook-meta <epub address> -rating ""

the output is
Failed to set metadata for the EPUB format of: <title>
Traceback (most recent call last):
  File "calibre/customize/ui.py", line 447, in set_file_type_metadata
  File "calibre/customize/builtins.py", line 467, in set_metadata
  File "calibre/ebooks/metadata/epub.py", line 261, in set_metadata
  File "calibre/ebooks/metadata/opf.py", line 109, in set_metadata
  File "calibre/ebooks/metadata/opf.py", line 55, in set_metadata_opf2
  File "calibre/ebooks/metadata/opf2.py", line 1316, in smart_update
TypeError: '<' not supported between instances of 'str' and 'float'

ebook-meta --version: ebook-meta (calibre 5.3)
MacOS 10.14.6

Revision history for this message
Kovid Goyal (kovid) wrote : Fixed in master

Fixed in branch master. The fix will be in the next release. calibre is usually released every alternate Friday.

 status fixreleased

Changed in calibre:
status: New → Fix Released
Revision history for this message
Poco Coco (pocococo) wrote :

when
ebook-meta <epub address> -rating ""
or
ebook-meta <epub address> -rating ''

the output is
Failed to set metadata for the EPUB format of: <title>
Traceback (most recent call last):
  File "calibre/customize/ui.py", line 447, in set_file_type_metadata
  File "calibre/customize/builtins.py", line 467, in set_metadata
  File "calibre/ebooks/metadata/epub.py", line 261, in set_metadata
  File "calibre/ebooks/metadata/opf.py", line 109, in set_metadata
  File "calibre/ebooks/metadata/opf.py", line 55, in set_metadata_opf2
  File "calibre/ebooks/metadata/opf2.py", line 1318, in smart_update
TypeError: '<' not supported between instances of 'str' and 'float'

ebook-meta --version: ebook-meta (calibre 5.4.1)
MacOS 10.14.6

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers