mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
CBZ metadata: Do not fail to read metadata if the volume is not a valid number. Fixes #1495651 [CBZ Metadata, content in issue => abort, content in volume => data read](https://bugs.launchpad.net/calibre/+bug/1495651)
This commit is contained in:
parent
73854c673a
commit
942c741662
@ -108,7 +108,10 @@ def get_comic_book_info(d, mi, series_index='volume'):
|
||||
if si is None:
|
||||
si = d.get('issue' if series_index == 'volume' else 'volume', None)
|
||||
if si is not None:
|
||||
try:
|
||||
mi.series_index = float(si)
|
||||
except Exception:
|
||||
mi.series_index = 1
|
||||
if d.get('rating', -1) > -1:
|
||||
mi.rating = d['rating']
|
||||
for x in ('title', 'publisher'):
|
||||
|
Loading…
x
Reference in New Issue
Block a user