mirror of
https://github.com/JimmXinu/FanFicFare.git
synced 2025-12-22 16:54:06 +01:00
Add option to call Count Pages Word Count only if FFDL numWords is missing.
This commit is contained in:
parent
0825e84e95
commit
a3d5f9f5fb
1 changed files with 4 additions and 3 deletions
|
|
@ -1289,10 +1289,11 @@ class FanFictionDownLoaderPlugin(InterfaceAction):
|
|||
wc_ids = [ y['calibre_id'] for y in filter(
|
||||
lambda x : '' == x['all_metadata'].get('numWords',''), add_list + update_list ) ]
|
||||
## not all need word count
|
||||
if wc_ids and len(all_ids) != len(wc_ids):
|
||||
if len(wc_ids) and len(all_ids) != len(wc_ids):
|
||||
cp_plugin.count_statistics(wc_ids,['WordCount'])
|
||||
## don't do WordCount below.
|
||||
while 'WordCount' in countpagesstats: countpagesstats.remove('WordCount')
|
||||
|
||||
## don't do WordCount below.
|
||||
while 'WordCount' in countpagesstats: countpagesstats.remove('WordCount')
|
||||
|
||||
## check that there's stuff to do in case wordcount was it.
|
||||
if countpagesstats:
|
||||
|
|
|
|||
Loading…
Reference in a new issue