Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Plugins

Notices

Reply
 
Thread Tools Search this Thread
Old 06-22-2020, 01:46 PM   #4231
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: 6,988
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
Quote:
Originally Posted by ownedbycats View Post
Question: Some while ago in this thread there was some talk about a feature to update the title pages from the saved metadata. Was that ever implemented?
I don't remember that, can you link to it?

Or are you talking about this:
Quote:
Originally Posted by JimmXinu View Post
Actually, there isn't anything in FFF to show empty metadata entries in the title page. I'll look into how difficult that would be to add.

The biggest question would be how to control it. One setting for 'show all titlepage_entries'? Some sites (looking at you, AO3) have a lot of extra entries. Or a list setting of 'show these titlepage_entries even when empty', (which would largely be a copy of titlepage_entries)? Or a modifier to put on items in the existing titlepage_entries like .NOREPL or .LIST used elsewhere?


There is already a mechanism for showing custom columns in the title page. If you look at FFF config personal.ini tab, the bottom couple options are whether to pass Calibre columns into FFF on update, and a bottom that will open a box to show you what they all are.

Then you can add those metadata entry names to the title page in personal.ini. For example, I have a Calibre custom column #extranotes and in personal.ini I have:

add_to_titlepage_entries:,calibre_cust_extranotes

Note that all of those calibre column values will always been from before the update and will all be empty on initial download.
.SHOW_EMPTY was implemented shortly after.
JimmXinu is offline   Reply With Quote
Old 06-22-2020, 01:57 PM   #4232
ownedbycats
Custom User Title
ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.
 
ownedbycats's Avatar
 
Posts: 11,025
Karma: 75555555
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
Here's a link:
https://www.mobileread.com/forums/sh...postcount=3392

Quote:
Originally Posted by baggins41 View Post
I'd just like to chime in and say how much I would appreciate it if you were able to add this.

There have been many times I've adjusted metadata in my Calibre library (especially adding series information) and had to either re-download the story or edit the epub by hand to update the title page. (And sometimes re-downloading isn't an option if e.g. the story has been deleted off the site it originally came from.)
ownedbycats is offline   Reply With Quote
Advert
Old 06-22-2020, 02:28 PM   #4233
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: 6,988
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
(multi-reply)

New Test Version Posted

2020-06-22
- Add cover_min_size setting.

From defaults.ini:
Code:
## If set, an image (regardless of source) will only be used as a
## cover image if it is >= both the dimensions listed here.  When not
## set, any size image will be used.  Note that some sites, like ffnet
## use relatively small images(180,240).
#cover_min_size: 100,100
Next question:
Quote:
Originally Posted by ownedbycats View Post
From over a year ago. I no longer feel bad about not remembering this.

Reading the next few pages of the thread, the final answer was:
Quote:
Originally Posted by JimmXinu View Post
I have spent waaay more time (including another hour today) than this corner case can justify trying to fit this into the existing system in way that both works 'as I expect to' and without breaking anything else. I give up.

It's not like there isn't already a way to do it, it's just not as efficient. Use 'Update EPUB always', or don't; it's your choice.
JimmXinu is offline   Reply With Quote
Old 06-22-2020, 03:40 PM   #4234
ownedbycats
Custom User Title
ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.
 
ownedbycats's Avatar
 
Posts: 11,025
Karma: 75555555
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
I'll try out the test version in a bit.

EDIT: It worked!

New question: I'm trying to add "Crossover" to the categories of...crossovers. I tried this regex after checking the documentation:
Code:
 category=>((.*)&&category==(.*))=>Crossover
but it didn't work.

Alternately, how would one go about remapping the add_genre_when_multi_category: Crossover to Category? I don't think there's possible via the custom columns settings since I can only select one metadata value per column. I'm probably misunderstanding the documentation because I tried a few things and it didn't do anything.

Last edited by ownedbycats; 06-22-2020 at 04:08 PM.
ownedbycats is offline   Reply With Quote
Old 06-22-2020, 07:31 PM   #4235
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: 6,988
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
New Test Version Posted

2020-06-22
- Add cover_min_size setting.
- Fix add_genre_when_multi_category so it can include_in_ without breaking and move above doreplacements.


Quote:
Originally Posted by ownedbycats View Post
New question: I'm trying to add "Crossover" to the categories of...crossovers. I tried this regex after checking the documentation:
Code:
 category=>((.*)&&category==(.*))=>Crossover
but it didn't work.
I'm not sure what you intended, but you can't nest replace_metadata expressions.

Quote:
Originally Posted by ownedbycats View Post
Alternately, how would one go about remapping the add_genre_when_multi_category: Crossover to Category? I don't think there's possible via the custom columns settings since I can only select one metadata value per column. I'm probably misunderstanding the documentation because I tried a few things and it didn't do anything.
I had forgotten about add_genre_when_multi_category entirely. Requested long ago by some other data normalizing crusader, no doubt.

Here's what I came up with to move Crossover from genre to category. Mind you, I had to fix some code first before it would work. So congrats on finding yet more corner cases.
Code:
## Add "Crossover" to genre
add_genre_when_multi_category:Crossover

## a tmp var, basically.  
## Need to add to your add_to_extra_valid_entries line.
add_to_extra_valid_entries:,crosscat

## fill with genre skipping replace/include/exclude
include_in_crosscat:genre.NOREPL

## only include Crossover in crosscat.  
## Again, incorporate with your existing, if  you have one.
add_to_include_metadata_pre:
 crosscat==Crossover

## remove Crossover from genre.  
## Again, incorporate with your existing, yada yada yada.
add_to_exclude_metadata_post:
 genre==Crossover

## add crosscat to category
## Again, incorporate with your existing, etc.
include_in_category:category,crosscat
(You know, there's a reason I just dump everything into Tags and don't worry about separate columns. It's just as easy or easier to search a tags pile vs separate columns.)
JimmXinu is offline   Reply With Quote
Advert
Old 06-22-2020, 08:06 PM   #4236
Ealdwulf
Enthusiast
Ealdwulf began at the beginning.
 
Posts: 34
Karma: 10
Join Date: Jun 2012
Device: Nook
Quote:
Originally Posted by ownedbycats View Post
I set up an error column and set column colouring to turn the entire row radioactive-green if there's an error. That should make it easy to notice.


I can figure out how to get it to turn the column a specific color, but how do you get it to turn the row a specific color?
Ealdwulf is offline   Reply With Quote
Old 06-22-2020, 08:25 PM   #4237
ownedbycats
Custom User Title
ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.
 
ownedbycats's Avatar
 
Posts: 11,025
Karma: 75555555
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
Quote:
Originally Posted by Ealdwulf View Post
I can figure out how to get it to turn the column a specific color, but how do you get it to turn the row a specific color?
Set the colour of the column: All columns worked for me
ownedbycats is offline   Reply With Quote
Old 06-22-2020, 09:25 PM   #4238
Atherton25
Zealot
Atherton25 can teach chickens to fly.Atherton25 can teach chickens to fly.Atherton25 can teach chickens to fly.Atherton25 can teach chickens to fly.Atherton25 can teach chickens to fly.Atherton25 can teach chickens to fly.Atherton25 can teach chickens to fly.Atherton25 can teach chickens to fly.Atherton25 can teach chickens to fly.Atherton25 can teach chickens to fly.Atherton25 can teach chickens to fly.
 
Posts: 124
Karma: 3804
Join Date: May 2016
Device: Kindle Oasis 2
Quote:
Originally Posted by ownedbycats View Post
Set the colour of the column: All columns worked for me
To be more specific, they probably mean
Preferences > Look & Feel > Column Coloring from there basic setup is pretty easy.

Just set a rule that says Set of the Color of 'All Columns' to (Whatever Color) if (FFF Error Column) column (is set) or you can be more specific.

Basically, if you set 'all columns' it just colors the whole row.... also make sure it's priority is setup properly (higher in the list) if you happen to have all columns used for something else.

Last edited by Atherton25; 06-22-2020 at 09:29 PM.
Atherton25 is offline   Reply With Quote
Old 06-23-2020, 10:36 AM   #4239
ownedbycats
Custom User Title
ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.
 
ownedbycats's Avatar
 
Posts: 11,025
Karma: 75555555
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
Question: Any suggestions why this regex in particular would return a blank result on fics tagged "Mass Effect" only on Fanfiction.net? It tested fine and works fine on AO3 so I can't figure out where I made a mistake.

Code:
 category=>(^(?=.*Mass Effect)(?!.*Mass Effect Trilogy).*|Mass Effect - All Media Types)=>Mass Effect Trilogy
I also tried swapping it out for (^(?=.*Mass.Effect) in case there was something going on with a non-standard space, but it also returned blank.



EDIT: I commented out the rest of my replace_metadatas and it replaced fine. I'm trying to identify which one it is messing it up now.

EDIT: And I uncommented each of them and....now it works? I don't understand!

Last edited by ownedbycats; 06-23-2020 at 10:50 AM.
ownedbycats is offline   Reply With Quote
Old 06-23-2020, 10:51 AM   #4240
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: 6,988
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
Quote:
Originally Posted by ownedbycats View Post
Question: Any suggestions why this regex in particular would return a blank result on fics tagged "Mass Effect" only on Fanfiction.net? It tested fine and works fine on AO3 so I can't figure out where I made a mistake.

Code:
 category=>(^(?=.*Mass Effect)(?!.*Mass Effect Trilogy).*|Mass Effect - All Media Types)=>Mass Effect Trilogy
I also tried swapping it out for (^(?=.*Mass.Effect) in case there was something going on with a non-standard space, but it also returned blank.
If the difference is which site it's on (assuming your AO3 example had tag "Mass Effect" as well), I'd be looking if you have something in your [fanfiction.net] section that affects it or overrides your settings.

BTW, when you start using negative and positive look aheads in the same regexp you are beyond my regexp level--have fun with that black magic. I'd just split it into more than one line if it's causing problems.
JimmXinu is offline   Reply With Quote
Old 06-23-2020, 11:03 AM   #4241
ownedbycats
Custom User Title
ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.
 
ownedbycats's Avatar
 
Posts: 11,025
Karma: 75555555
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
I did get it to work after commenting out everything else and then un-commenting it, so I have no idea what was going on.

I'm just kind of fumbling around with the regexps too. Reminds me a bit of the quote about having one problem, using regex to solve it, and then having two problems. Or this xkcd comic.
ownedbycats is offline   Reply With Quote
Old 06-24-2020, 01:42 AM   #4242
ownedbycats
Custom User Title
ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.
 
ownedbycats's Avatar
 
Posts: 11,025
Karma: 75555555
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
When downloading a fic that has the same author/title but a different website, is it intended there be no option to download it as a new fic? The only options were either to overwrite the URL or to skip download entirely.

Though probably just another corner case here if I'm honest. And the easy workaround was to just rename the original fic.

Last edited by ownedbycats; 06-24-2020 at 02:07 AM.
ownedbycats is offline   Reply With Quote
Old 06-24-2020, 11:41 AM   #4243
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: 6,988
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
Quote:
Originally Posted by ownedbycats View Post
When downloading a fic that has the same author/title but a different website, is it intended there be no option to download it as a new fic? The only options were either to overwrite the URL or to skip download entirely.

Though probably just another corner case here if I'm honest. And the easy workaround was to just rename the original fic.
Click 'No', you will then be offered a second dialog for 'Download as New Book?'
JimmXinu is offline   Reply With Quote
Old 06-24-2020, 11:48 AM   #4244
ownedbycats
Custom User Title
ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.
 
ownedbycats's Avatar
 
Posts: 11,025
Karma: 75555555
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
I never got that message, but I was downloading more than one fic at the same time so maybe that affect it.
ownedbycats is offline   Reply With Quote
Old 06-25-2020, 11:17 AM   #4245
ownedbycats
Custom User Title
ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.
 
ownedbycats's Avatar
 
Posts: 11,025
Karma: 75555555
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
I was able to test it again (using an empty test library) and wasn't able to replicate it; the "download as new book" dialog did come up this time. So either it was user error or just one of those gremlins that always seems to occur when I'm around—I have a somewhat unnerving tendency to uncover glitches in otherwise glitch-free games.
ownedbycats is offline   Reply With Quote
Reply

Tags
fanfiction


Forum Jump

Similar Threads
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


All times are GMT -4. The time now is 02:53 PM.


MobileRead.com is a privately owned, operated and funded community.