View Single Post
Old 05-02-2012, 09:53 PM   #238
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,045
Karma: 4604637
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
Generate Cover Integration Beta

Anybody interested testing a new feature? Namely, automatically calling Generate Cover(GC) on FFDL download/updates. I know somebody asked for it once.

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.
## 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.)

(zip file removed after official release)

Last edited by JimmXinu; 05-08-2012 at 11:53 AM. Reason: Remove obsolete beta versions
JimmXinu is offline