View Single Post
Old 01-03-2015, 11:57 PM   #3623
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,024
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
Attached is (yet another) test version with a new option on the FFDL Count Pages config tab to only call Word Count if the FFDL metadata is missing it. This is in response to mehetabelo's 2nd request--it seems a better solution to me than specifying by site.

So the Count Pages plugin can potentially be called twice--once with a list of books that need Word Count and again with the full list of downloaded/updated books to update Page Count, etc. If you only use Word Count (or only Page Count, or leaving the Missing option off), it will still only be called once.

As for mehetabelo's 1st request--injecting Word Count into the FFDL Title Page when the site doesn't provide it--that's considerably trickier. I don't see a way to do it that I like.

For one thing, the Count Pages plugin isn't run until after FFDL has finished. Outdated info is worse than missing info, IMO. Series can already be injected if it's set in calibre (but not available in FFDL metadata) because that scratched a personal itch I had about ffnet not having a series mechanism--and series doesn't change with every update.

If Word Count is that big a deal to you, in addition to the solution you already have, you could also consider the solution I use, which is a calibre Metadata Plugboard setting to put the tags and word count in as part of the title when books are transferred to my Nook and Kindle.

title:
Code:
{#title_prefix:|| }{series:|| }{series_index:0>2s|[|] - }{title}{#wordcount:| (|)}{tags:| [|]}{#extranotes:| [|]}
Generate Cover with word count in it is only an option if you run it yourself--FFDL calls GC before it calls Count Pages.

Last edited by JimmXinu; 01-04-2015 at 12:22 PM. Reason: Remove obsolete test versions - replaced by newer test or released version.
JimmXinu is offline