View Single Post
Old 09-12-2013, 04:50 PM   #1872
JimmXinu
Plugin Developer
JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.
 
JimmXinu's Avatar
 
Posts: 7,043
Karma: 4604637
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
Quote:
Originally Posted by Firedancer885 View Post
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

Last edited by JimmXinu; 09-14-2013 at 01:41 PM. Reason: Remove obsolete beta versions
JimmXinu is offline