View Single Post
Old 05-09-2020, 01:32 PM   #4087
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
New Test Version Posted

2020-05-09
- Remove '.' from numWords in adapter_fanfiktionde


Quote:
Originally Posted by ILB View Post
...
But itīs only If it try to update an existing story. If I download a new story there is no error.

With "Exception: Trying to set entry (numWords) value(1.032) to column (#word_count) failed (invalid literal for int() with base 10: '1.032')" it seems as if the existing wordcount canīt be updated.

Could there have been a change in the number format?
That error is definitely because Calibre doesn't like the '.' separator (instead of ','). My only explanation why a new story would work better is if it has less than 1000 words or the word count was different/didn't appear--the story URL given has that error for me as a new download.

I suspect it could be made to work if you run Calibre in a locale that uses '.' for grouping separator, or change some Calibre tweak values. Using replace_metadata to remove the '.' is also a possibility.

However, I think it's best to just address it directly in adapter_fanfiktionde.
JimmXinu is offline   Reply With Quote