New Test Version Posted
2020-05-09
- Remove '.' from numWords in adapter_fanfiktionde
Quote:
Originally Posted by ILB
...
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.