mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 10:44:09 -04:00
Fix OPDS feed blowing up if a library has no custom columns
This commit is contained in:
parent
cc183114d6
commit
eda8d512bf
@ -179,8 +179,8 @@ def ACQUISITION_ENTRY(item, version, db, updated, CFM, CKEYS, prefix):
|
|||||||
extra.append(_('SERIES: %(series)s [%(sidx)s]<br />')%
|
extra.append(_('SERIES: %(series)s [%(sidx)s]<br />')%
|
||||||
dict(series=xml(series),
|
dict(series=xml(series),
|
||||||
sidx=fmt_sidx(float(item[FM['series_index']]))))
|
sidx=fmt_sidx(float(item[FM['series_index']]))))
|
||||||
|
mi = db.get_metadata(item[CFM['id']['rec_index']], index_is_id=True)
|
||||||
for key in CKEYS:
|
for key in CKEYS:
|
||||||
mi = db.get_metadata(item[CFM['id']['rec_index']], index_is_id=True)
|
|
||||||
name, val = mi.format_field(key)
|
name, val = mi.format_field(key)
|
||||||
if val:
|
if val:
|
||||||
datatype = CFM[key]['datatype']
|
datatype = CFM[key]['datatype']
|
||||||
|
Loading…
x
Reference in New Issue
Block a user