![]() |
#3481 |
Member
![]() 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 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 ![]() |
![]() |
![]() |
![]() |
#3482 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,327
Karma: 5306
Join Date: Jan 2014
Device: none
|
Quote:
|
|
![]() |
![]() |
![]() |
#3483 |
Member
![]() Posts: 12
Karma: 10
Join Date: Jun 2019
Device: none
|
Of course.
![]() My default cover generation in the settings is a very generalized one not specific to any fandom. The entries listed in the personal.ini are specific for a particular fandom, where I want the -Default one to only be used if the website has no cover associated with that fic. But the commented variety never appears to kick in, and the first uncommented line is what will work... but that gives me an ugly image with the default calibre books for the missing cover image. So I know for a fact that the regular expression that detects the fandom works fine; it is detecting whether or not there is a cover associated with the fic and using the correct profile that is a problem. |
![]() |
![]() |
![]() |
#3484 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,327
Karma: 5306
Join Date: Jan 2014
Device: none
|
This is a sample of my settings for the covers:
Code:
generate_cover_settings: ${category} => A Song of Ice => A Song of Ice ${category} => Angel => Angel ${category} => Bones => Bones ${category} => Buffy => Buffy ${category} => Chronicles of Narnia => Chronicles of Narnia ${category} => Cold Case => Cold Case ${category} => Criminal Minds => Criminal Minds |
![]() |
![]() |
![]() |
#3485 |
Member
![]() Posts: 12
Karma: 10
Join Date: Jun 2019
Device: none
|
Right, I already have entries like those like you can see in my original post.
My aim is to create custom covers where, if the fic has a cover associated on its website, it shows that as a part of the custom cover. That is not the problem. The problem is that I want to use a different template if there is no cover associated with this fic on the original website. (This 'default' template has a hard-coded image, no outline around the original cover and some other minor tweaks.) |
![]() |
![]() |
![]() |
#3486 | ||
Plugin Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,995
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
|
New Test Version Posted
2018-06-13 - Change metadata separator to ' & ' when filling 'Contains names' custom columns. ![]() Quote:
Code:
generate_cover_settings: ## Does not seem to work... :( # ${category},${cover_image} => .SOME_FANDOM.*,(specific|first|default|old) => Fanworks-SOME_FANDOM (Also, I'm not sure why you have '.' before SOME_FANDOM, I'd expect it to be '.*' like after...) Quote:
There are ways using FFF settings to change the separators, but FFF was hard-coded to use ', ' when adding to existing using the a flag in custom_columns_settings. So, since I needed to change it in that one place, I added code to FFF to do the ', ' to ' & ' change when filling a 'Contains names' column. |
||
![]() |
![]() |
![]() |
#3487 | |||
Member
![]() Posts: 12
Karma: 10
Join Date: Jun 2019
Device: none
|
Quote:
![]() I have to apologize on bothering you with that one; I think I spent so much time triple-checking and verifying other lines I thought might interfere that I totally failed to carefully triple-check the one thing I _am_ familiar with. I'll give it a shot with that change incorporated. ![]() Quote:
Quote:
![]() |
|||
![]() |
![]() |
![]() |
#3488 |
Member
![]() Posts: 12
Karma: 10
Join Date: Jun 2019
Device: none
|
The issues I ran into now work as I've been trying to get them to work. Thanks for the help and patch!
All that remains is to figure out if I can have FFF fold the generated cover back into the epub to be used as a cover, or whether I need a separate plugin to accomplish that. Another change for another day. ![]() |
![]() |
![]() |
![]() |
#3489 | |
Plugin Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,995
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
|
Quote:
![]() There's a setting on FFF's Calibre Cover setting tab for 'Inject/update the cover inside EPUB'. |
|
![]() |
![]() |
![]() |
#3490 | ||
Member
![]() Posts: 12
Karma: 10
Join Date: Jun 2019
Device: none
|
Quote:
![]() Quote:
This shows exactly why I need rubber duckies for optimal efficiency. (And it is also a fair argument why I shouldn't try to do anything remotely complicated after midnight, but that last one would be wild speculation...) |
||
![]() |
![]() |
![]() |
#3491 |
Member
![]() Posts: 12
Karma: 10
Join Date: Jun 2019
Device: none
|
This is probably a very stupid question... but how do I 'properly' import a story in my library using the CLI? I am using a variety of the calibre-debug.exe trick that I saw in the FAQ somewhere. (A variation because the exact command did not work, and calibre-debug because I assume the test version is not on Pip yet.)
Code:
c:\Program Files\Calibre2\calibre-debug.exe -r FanFicFare -- -d --library-path=Y:/Fanworks https://www.fanfiction.net/s/4050939/1/Herz-aus-Eis I tried without specifying the library path but no good like that, either. What am I missing? |
![]() |
![]() |
![]() |
#3492 | |
Plugin Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,995
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
|
Quote:
When called via calibre-debug CLI, FanFicFare plugin behaves the same as the FFF Python CLI, not the plugin version. So basic download functionality is all you get. A number of things the FFF plugin does are simply not available when called via calibre CLI. That includes GUI user interactions and calling other plugins--such as Generate Cover. In theory, all of the core FFF functions (download, update Calibre metadata, do conversion if optioned) could be re-coded to work from the CLI, but not calling other plugins--not without also incorporating their features or re-writing them. You can, if desired, configure Calibre to auto-import any ebook placed in a specified directory. Then use FFF via calibre CLI to download and move the resultant file in that dir. But you don't get all FFF's bells and whistles. Re: FFF CLI test versions, I do post a test version CLI for pip, but I don't always update it for every posted test version: Code:
pip install --extra-index-url https://testpypi.python.org/pypi --upgrade FanFicFare |
|
![]() |
![]() |
![]() |
#3493 |
Member
![]() Posts: 12
Karma: 10
Join Date: Jun 2019
Device: none
|
Well, that is definitely very unfortunate. I start out with a URL, so I don't have an ebook to begin with. If I use FFF-CLI to make the ebook, I will have to import that and then somehow manipulate Calibre to replace the cover, manually assign all the custom columns and more of that mess... and probably still break interaction with using FFF from the GUI when I do want to use it from there. (Not to mention the problems involved with having two workflows trying to do the same thing.)
I guess I have to find some other way to go about this. (When I saw that FFF supported CLI and all the parameters it supported, I had not expected that this of all things would turn out the be the most troublesome issue to tackle! ![]() |
![]() |
![]() |
![]() |
#3494 |
Plugin Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,995
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
|
![]() Between fetching update notices from email, adding to Reading Lists (which can then update devices when attached) and adding/removing from 'To Read' lists, even starting conversions, FFF automates most steps of my fanfic management. But it's not surprising it does what I want. ![]() |
![]() |
![]() |
![]() |
#3495 |
Member
![]() Posts: 12
Karma: 10
Join Date: Jun 2019
Device: none
|
My aim is admittedly bit esoteric. I was trying to set up an endpoint that would allow me to load in new fics without further user interaction so that I can then hook it up to other sources as needed.
A recurring discussion in a small community of readers is 'do you remember a fic about X and Y?!', only to have some true fic addict immediately identify it based on the description. 'Oh, that is Blahblah from Blurb, here's the link!'... and then the link is to a dead fic. I am relatively capable at coding when it isn't around midnight, so I figured I'd just set up a discord bot where people could drop links to their most appreciated fics which would then get stored up just in case some fic would ever get wiped from oblivion. (Obviously authors have every right to remove their fics, but I feel that if fans were to go out of their way to store such a fic in a communal library of sorts, preserving what is worth preserving is a valid enough aim.) For now it seems I am stuck doing it all manually. I haven't been able to find any way to make Calibre just eat the custom metadata stored inside the .epub FFF generated so that it fills the custom columns with that data when I manually toss it into Calibre. This makes it all a few hurdles too many. ![]() Still, FFF is a great plugin. I am just weird with what I am trying to achieve. ![]() |
![]() |
![]() |
![]() |
Tags |
fanfiction |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
[GUI Plugin] KindleUnpack - The Plugin | DiapDealer | Plugins | 523 | 07-15-2025 06:45 PM |
[GUI Plugin] Open With | kiwidude | Plugins | 404 | 02-21-2025 05:42 AM |
[GUI Plugin] Marvin XD | Philantrop | Plugins | 126 | 01-29-2017 12:48 PM |
[GUI Plugin] KiNotes | -axel- | Plugins | 0 | 07-14-2013 06:39 PM |
[GUI Plugin] Plugin Updater **Deprecated** | kiwidude | Plugins | 159 | 06-19-2011 12:27 PM |