mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
The value for is_multiple should never be left as None when an OPF is read. One consequence of leaving it None: text/non-multiple columns are not filled in when adding books using an OPF.
This commit is contained in:
parent
78f7518fc4
commit
d592d3c9d1
@ -108,6 +108,8 @@ def decode_is_multiple(fm):
|
|||||||
else:
|
else:
|
||||||
im = {'cache_to_list': '|', 'ui_to_list': ',',
|
im = {'cache_to_list': '|', 'ui_to_list': ',',
|
||||||
'list_to_ui': ', '}
|
'list_to_ui': ', '}
|
||||||
|
elif im is None:
|
||||||
|
im = {}
|
||||||
fm['is_multiple'] = im
|
fm['is_multiple'] = im
|
||||||
|
|
||||||
class JsonCodec(object):
|
class JsonCodec(object):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user