Quote:
Originally Posted by cryzed
@Jimm
I'm pretty sure that this is still a bug relating to merging the stories though. Why does an adapter need to provide "numWords"? There's a bug somewhere in "merge_meta_books" in the "ffdl_plugin.py" line 1992. Somehow the standard story metadata has a bunch of default keys, like "numWords" and "numChapters" with empty values. In the method it now runs into an error, because it expects both fields to have a valid value just because the keys are contained in the metadata. I think the easiest way would be to check "if book['all_metadata'][k] and b['all_metadata'][k]" before working with the values in the method -- your call! Also attached is a possible fix, it seems to work for me.
|
Can you provide a couple story URLs that demonstrate the problem? I'm not finding any where that pre-sets numWords to None. numChapters is required. If there's no chapters at all, there's no story.