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 04-02-2023, 06:52 PM   #8281
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: 10,977
Karma: 75337983
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
I'll try setting default to a space -- I only want subtitle on selected stories, and Calibre would remove it from the field.

EDIT: How do I set the default value of an entry to a literal? I think include_in only works for copying other entries.

ANOTHER EDIT: I think subtitle:" " under [defaults] should work

EDIT: It didn't work

Last edited by ownedbycats; 04-02-2023 at 07:06 PM.
ownedbycats is online now   Reply With Quote
Old 04-02-2023, 07:07 PM   #8282
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,973
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
Quote:
Originally Posted by ownedbycats View Post
I'll try setting default to a space -- I only want subtitle on selected stories, and Calibre would remove it from the field.

EDIT: How do I set the default value of an entry to a literal? I think include_in only works for copying other entries.
There's no provision for setting an added metadata entry to a static value. Set it to an existing entry that always has a value.

Why are you pursuing this when I already gave you the first solution you asked for 2 weeks ago for custom_columns_settings?
JimmXinu is offline   Reply With Quote
Advert
Old 04-02-2023, 07:09 PM   #8283
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: 10,977
Karma: 75337983
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
Mostly to see if I could get it to work. I'll put back the cutom column settings.
ownedbycats is online now   Reply With Quote
Old 04-03-2023, 01:58 PM   #8284
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: 10,977
Karma: 75337983
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
Very specific corner-case request. Only bother if it's particularly easy to do or useful for other cases:

The ability to pass column links from the table back into FanFicFare when 'Pass Calibre columns' is enabled. Perhaps called calibre_std_columnname_link.

Use-case: I have selected gift/exchange collections (for which URLs are not collected by FFF) included in Series. If links are present in the db, I think using include_metadata (for filtering) and include_in_links I may be able to have them appear on the titlepage.

Last edited by ownedbycats; 04-03-2023 at 04:50 PM.
ownedbycats is online now   Reply With Quote
Old 04-03-2023, 05:09 PM   #8285
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: 10,977
Karma: 75337983
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
Alternative method:

Should this work? It doesn't, but I'm not sure if there's an error in my implementation or whether this applies as there's no initial seriesUrl:

Quote:
Originally Posted by JimmXinu View Post
Empty entries aren't processed.
personal.ini, includes other relevant entries:

Code:
[archiveofourown.org]

add_to_replace_metadata:
## Add seriesUrl to collection series
 seriesUrl=>^.*=>https://archiveofourown.org/collections/SpecReqs2023&&series==Spectre Requisitions 2023

include_metadata_pre:
## Include specific collections for series
collections=~(Spectre Requisitions \d{4}|Spec Recs|Spec Recs \d{4})

## Copy collections to series
include_in_series:series,collections

EDIT: To make things even more confusing, there is an effect: It removes the series from the titlepage! (And commenting the line out restores it.) This makes me inclined to think that it is replacing but glitching out.

Last edited by ownedbycats; 04-03-2023 at 05:21 PM.
ownedbycats is online now   Reply With Quote
Advert
Old 04-03-2023, 06:03 PM   #8286
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,973
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
New Test Version Posted

2023-04-03
- Add static include_in_* when double quoted.

Eg:
Code:
[http://test1.com?sid=5]
include_in_seriesUrl:"http://test1.com/NEW"
(Note, however, that if you have the new Set Calibre Series URL box checked, and change the seriesUrl for one book, on the next FFF update that URL will be associated with that series in the Calibre library for books of that series.)

That should solve several of ownedbycats' latest endeavors.

Quote:
Originally Posted by ownedbycats View Post
The ability to pass column links from the table back into FanFicFare when 'Pass Calibre columns' is enabled. Perhaps called calibre_std_columnname_link.
Let's see what else link maps get used for first.

Quote:
Originally Posted by ownedbycats View Post
Alternative method:
See static feature above.
JimmXinu is offline   Reply With Quote
Old 04-03-2023, 06:50 PM   #8287
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: 10,977
Karma: 75337983
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
Question: What order should include_in, replace_metadata, and include_metadata_pre run?

I created a custom entry and set it a placeholder to be transformed and included in seriesUrl. The replacement isn't working as expected. Would be easier than making a dozen story sections...

EDIT: Here's the code

Code:
[defaults]

# Custom metadata entries
add_to_extra_valid_entries:,collectionUrl

[archiveofourown.org]
## I also tried replacing 'seriesUrl'
 collectionUrl=>abc=>https://archiveofourown.org/collections/SpecReqs2023&&collection==Spectre Requisitions 2023

## Generates placeholder collectionUrl
include_in_collectionUrl:"abc"

## Copy collectionURL to series
include_in_seriesUrl:collectionUrl

include_metadata_pre:
## To include placeholder only when there's a collection
 collectionUrl==abc&&collections==Spectre Requisitions 2023
EDIT: It was a typo. The replace_metadata was checking 'collection' and not 'collections'

EDIT: Another issue though: the placeholder will apply for all books, ignoring the include_metadata.

Last edited by ownedbycats; 04-03-2023 at 07:08 PM.
ownedbycats is online now   Reply With Quote
Old 04-03-2023, 07:04 PM   #8288
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,973
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
add_to_extra_valid_entries
include_in_X
(in/ex)clude_metadata_pre
replace_metadata
(in/ex)clude_metadata_post
JimmXinu is offline   Reply With Quote
Old 04-03-2023, 07:19 PM   #8289
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: 10,977
Karma: 75337983
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
I found my mistake with the second one: I forgot to include seriesUrl in seriesUrl

I got various problems sorted out and posted my 'complete' version here:
https://www.mobileread.com/forums/sh...4&postcount=15

Additional question: When using a replaced value as a conditional in the same replace_metadata block, should I always put it below? As an example:

Code:
add_to_replace_metadata:

 collections=>Mass Effect - N7 Exchange 22=>N7 Exchange 2022
 collectionUrl=>abc=>https://archiveofourown.org/collections/MassEffectN7Exchange2022&&collections==N7 Exchange 2022
EDIT: Based on a quick test, it seems so. I added this to the MetadataManagement page.

I also added a small ToC to the MetadataManagement page but I won't be upset if you want to remove it.

Last edited by ownedbycats; 04-03-2023 at 11:49 PM.
ownedbycats is online now   Reply With Quote
Old 04-03-2023, 10:25 PM   #8290
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: 10,977
Karma: 75337983
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
For one story (PM'd link as it's adult) I'm having trouble getting rid of the "Mass Effect Big Bang" series without also deleting the "Mass Effect Big Bang 2012" collectiion.

I put the settings in a new library with a fresh personal.ini to check other settings weren't messing with it

Code:
[defaults]

is_adult:true

## Copy collections to series
include_in_series:series,collections

include_metadata_pre:
 collections==Mass Effect Big Bang 2012
I'm having trouble getting rid of the "Mass Effect Big Bang" series without affecting the collection.

Any attempt at exact-matching fails to match (don't know why) and concats the two
Code:
exclude_metadata_pre:
 series==Mass Effect Big Bang
 series=~Mass Effect Big Bang$
But fuzzy-matching removes both (and would affect other fics):
Code:
exclude_metadata_pre:
 series=~Mass Effect Big Bang
 series=~Mass Effect Big Bang&&seriesUrl==https://archiveofourown.org/series/xxxx
EDIT: Adding the [1] worked. In my main library, I also had to remove the seriesUrl in a separate line.

Last edited by ownedbycats; 04-04-2023 at 02:56 AM.
ownedbycats is online now   Reply With Quote
Old 04-04-2023, 12:30 PM   #8291
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: 10,977
Karma: 75337983
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
An entirely different question:

I noticed I still have an extended (5 seconds instead of 2) slow_down_sleep_time for ffnet even though I use cache & open_pages.

Is there any reason to keep it?
ownedbycats is online now   Reply With Quote
Old 04-04-2023, 01:10 PM   #8292
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,973
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
AIR, if you are using open_pages_in_browser, slow_down_sleep_time is applied between attempts to open a page in the browser.
JimmXinu is offline   Reply With Quote
Old 04-04-2023, 04:46 PM   #8293
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: 10,977
Karma: 75337983
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
Code:
[archiveofourown.org]

include_in_series:series,collections

include_metadata_pre:
## Include specific collections as series
 collections=~(N7 Exchange|N7 Exchange \d{4})

exclude_metadata_pre:
 series=~\“Everyone wants a spiky girlfriend!\” \(f!Vetryder One Shots\) \[\d\]$
 seriesUrl==https://archiveofourown.org/series/28830

add_to_replace_metadata:
 collections=>Mass Effect - N7 Exchange 22=>N7 Exchange 2022
When a fic has an included collection and an excluded series, the excluded series index is added to the Calibre column (title page shows unnumbered series) -- in this case 'N7 Exchange 2022 [5]'. This has occurred on three stories so far (the other two aren't as family-friendly).

Since it only affects Calibre metadata it's easy to fix but is this a user error or a bug?

Last edited by ownedbycats; 04-04-2023 at 05:04 PM.
ownedbycats is online now   Reply With Quote
Old 04-04-2023, 05:39 PM   #8294
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,973
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
While FFF will allow you to have a series metadata entry without a number, Calibre will not.

To the best of my knowledge, all entries in Calibre's standard Series column or Series type custom columns must have a number. It can be zero, fractional, or even negative, but it will be here. Calibre will automatically use the next open integer if there isn't one in the value given.
JimmXinu is offline   Reply With Quote
Old 04-04-2023, 05:43 PM   #8295
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: 10,977
Karma: 75337983
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
Yes. I was expecting it to be set to [1] as that's what I get on the constructed collection-series. Intead, it copied the number from the excluded series.

I thought perhaps the column overwrite wasn't working as expected but clearing it and re-updating resulted in the [5] again.

Last edited by ownedbycats; 04-04-2023 at 05:48 PM.
ownedbycats is online now   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 05:08 PM.


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