View Single Post
Old 05-08-2012, 11:52 AM   #240
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
v1.5.18 posted with new feature:
(1.5.17 skipped)

Automatically call Generate Cover(GC) on FFDL download/update.

There's a new config tab in FFDL for Generate Cover and three ways to set it up:
  1. Easiest: Select GC setting for 'Default' to use for all downloads/updates.
  2. Still Easy: Select different GC settings to use for different sites. Choose a Default to fall back to or now, as you please.
  3. Somewhat Hard: Define templates and regular expressions for different GC settings in personal.ini. Allows for GC setting by category or genre (or author, or whatever) across different sites, or with different settings per site.

By leaving FFDL's basic 'Update Cover' option on and using GC's '{Current Cover}' feature, you can also get GC to use a cover image from the story automatically.

Here's an example of the personal.ini config:
Spoiler:
Code:
## If you have the Generate Cover plugin installed, you can use the
## generate_cover_settings parameter to intelligently decide which GC
## setting to run.  There are three parts 1) a template of which
## metadata part(s) to look at, 2) a regular expression to match the
## template, and 3) the name of the GC setting to use, which must
## match exactly.  Use this parameter in [defaults], or by site eg,
## [www.ficwad.com]
## Make sure to keep at least one space at the start of each line and
## to escape % to %%, if used.
## template => regexp to match => GC Setting to use.
generate_cover_settings:
 ${category} => Buffy:? [tT]he Vampire Slayer => BuffyCover
 ${category} => Star Trek => StarTrekCover

(Trying to do a GUI version of generate_cover_settings is a lot of work that I'm only going to invest if there's a lot of interest.)

As usual, there may be a delay before calibre notices the new version. You can get the latest by going in and telling calibre to install it again.

Last edited by JimmXinu; 05-08-2012 at 11:56 AM.
JimmXinu is offline