View Single Post
Old 06-13-2019, 07:26 AM   #3481
worstje
Member
worstje began at the beginning.
 
Posts: 12
Karma: 10
Join Date: Jun 2019
Device: none
First of all, thanks for this great plugin!

Second, I am running into some issues I can't seem to figure out and I am just about to give up, thus leading to me finally signing up here and posting. Being new to FFF and relatively noob at Calibre in general, I offer my apologies if these are stupid questions I am asking here that are explained somewhere in the documentation that I missed.

Thus far, all my tests are limited to Fanfiction.net (FFN).

1) How to activate a different cover generation profile if there is no cover included with the fic in question? Simplifying away the regex for the series name, the following bit of code sums up my attempts thus far:

Code:
generate_cover_settings:
## Does not seem to work... :(
# ${category},${cover_image} => .SOME_FANDOM.*,(specific,first,default,old) => Fanworks-SOME_FANDOM
## This did though, so cover_image is clearly empty.
 ${category},${cover_image} => .SOME_FANDOM.*, => Fanworks-SOME_FANDOM
 ${category},${cover_image} => .SOME_FANDOM.*,.* => Fanworks-SOME_FANDOM-Default

[epub]
make_firstimage_cover:true
My tests have turned out that despite stories having an associated cover, one that is also listed in the epub, cover_image will be empty. How do I trigger my special default cover? (I don't want the default Calibre books, and I want it to be specific to the series in question, so just replacing the default image is not an option to my knowledge.)

2) How do I create a characters column with smart behaviour like Authors in regards to 'FirstName LastName' entries being shown in the tags list as 'LastName, FirstName'?

I tried creating a comma-separated text column #characters, but the moment I hit the 'As Names' option in that interface, it turns it into an ampersand separated list... which means that whatever FFF tries to give it is suddenly turned into one big list. I guess I need to replace commas by ampersands, but shouldn't FFF already have those names as a list to begin with?

Relevant code snippets:

Code:
replace_metadata:
 characters,ships=>Firstname L.=>Firstname Lastname
 characters,ships=>F. Last=>First Last

add_to_custom_columns_settings: 
 category=>#fandom
 description=>#summary
 rating=>#rating
 characters=>#characters
 ships=>#ships
 status=>#status
 dateUpdated=>#lastupdate
Thank you for taking the time to read this small cry for help.
worstje is offline   Reply With Quote