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-03-2023, 02:58 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: 11,438
Karma: 81367635
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 05:50 PM.
ownedbycats is offline   Reply With Quote
Old 04-03-2023, 06:09 PM   #8282
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,438
Karma: 81367635
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 06:21 PM.
ownedbycats is offline   Reply With Quote
Advert
Old 04-03-2023, 07:03 PM   #8283
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,212
Karma: 5006097
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, 07:50 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: 11,438
Karma: 81367635
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 08:08 PM.
ownedbycats is offline   Reply With Quote
Old 04-03-2023, 08:04 PM   #8285
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,212
Karma: 5006097
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
Advert
Old 04-03-2023, 08:19 PM   #8286
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,438
Karma: 81367635
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-04-2023 at 12:49 AM.
ownedbycats is offline   Reply With Quote
Old 04-03-2023, 11:25 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: 11,438
Karma: 81367635
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 03:56 AM.
ownedbycats is offline   Reply With Quote
Old 04-04-2023, 01:30 PM   #8288
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,438
Karma: 81367635
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 offline   Reply With Quote
Old 04-04-2023, 02:10 PM   #8289
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,212
Karma: 5006097
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, 05:46 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: 11,438
Karma: 81367635
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 06:04 PM.
ownedbycats is offline   Reply With Quote
Old 04-04-2023, 06:39 PM   #8291
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,212
Karma: 5006097
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, 06:43 PM   #8292
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,438
Karma: 81367635
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 06:48 PM.
ownedbycats is offline   Reply With Quote
Old 04-04-2023, 07:30 PM   #8293
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,212
Karma: 5006097
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
Calibre remembers the number even when you change the name. It does use two different edit boxes for series name and series number, so I'm not really surprised.

My expectation is that you will only get [5] if 1-4 already exist in that series. But I've exhausted my ability to care.

I was going to ask if you have calibre_series_meta:true, but that feature outright breaks with these settings and will be fixed in the next test version.

So congratulations, you have yet again found a new corner of the envelope to push that no one else has.
JimmXinu is offline   Reply With Quote
Old 04-04-2023, 08:11 PM   #8294
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,438
Karma: 81367635
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
Is it similar to the same issue that was causing problems in Manage Series a few years ago?

Since it only affects the Calibre metadata, easy to fix during metadata postprocessing in Action Chains.

Last edited by ownedbycats; 04-04-2023 at 08:58 PM.
ownedbycats is offline   Reply With Quote
Old 04-05-2023, 01:13 AM   #8295
applegaa
Connoisseur
applegaa has learned how to buy an e-book online
 
applegaa's Avatar
 
Posts: 77
Karma: 76
Join Date: Apr 2019
Device: none
Quote:
Originally Posted by JimmXinu View Post
My expectation is that you will only get [5] if 1-4 already exist in that series.
In my experience, Calibre always uses max + 1 and doesn't care if any numbers are missing in the series.

- Andrew
applegaa 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 527 08-15-2025 02:36 PM
[GUI Plugin] Open With kiwidude Plugins 404 02-21-2025 06:42 AM
[GUI Plugin] Marvin XD Philantrop Plugins 126 01-29-2017 01:48 PM
[GUI Plugin] KiNotes -axel- Plugins 0 07-14-2013 07:39 PM
[GUI Plugin] Plugin Updater **Deprecated** kiwidude Plugins 159 06-19-2011 01:27 PM


All times are GMT -4. The time now is 05:51 AM.


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