From 5ce064bf92d9ee8210045fc06a5d5fbf54a5287f Mon Sep 17 00:00:00 2001 From: Jim Miller Date: Thu, 30 May 2013 19:37:50 -0500 Subject: [PATCH] Fix so non-anthology numeric custom columns populate correctly. --- calibre-plugin/ffdl_plugin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/calibre-plugin/ffdl_plugin.py b/calibre-plugin/ffdl_plugin.py index 13ab5976..40806d29 100644 --- a/calibre-plugin/ffdl_plugin.py +++ b/calibre-plugin/ffdl_plugin.py @@ -1395,7 +1395,7 @@ class FanFictionDownLoaderPlugin(InterfaceAction): if flag == 'r' or book['added']: # flag 'n' isn't actually needed--*always* set if configured and new book. if coldef['datatype'] in ('int','float'): # for favs, etc--site specific metadata. - if meta in book['anthology_meta_list']: + if 'anthology_meta_list' in book and meta in book['anthology_meta_list']: # re-split list, strip commas, convert to floats, sum up. val = sum([ float(x.replace(",","")) for x in book['all_metadata'][meta].split(", ") ]) else: