Quote:
Originally Posted by Firedancer885
Jimm,
I just tried to add http://www.ncisfiction.com/story.php?stid=05113, but I got an error.
Code:
...
File "site-packages/calibre/db/write.py", line 88, in adapt_number
ValueError: invalid literal for int() with base 10: ''
...
numWords:
site:
www.ncisfiction.net
...
|
It's failing because there's no word count collected and it's failing when trying to set it to an empty string. I'd blame it on calibre 1.x, but 0.9 does the same thing. Apparently it changed on one end or the other somewhere along the way.
Attached is a version of the PI that skips setting int/float columns when the data is empty.
UPDATE Sep 14 2013 - Remove obsolete beta versions