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 Yesterday, 01:09 PM   #11776
suhair
Junior Member
suhair began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Apr 2025
Device: Galaxy 20 SM-G781U
Question

For fic collected in more than one series, is there a way to replace the default series with one of the additional series? There are a few authors that have a catchall series that all their fic goes in which is listed first and then more specific series if a oneshot gets continued. In those cases I want the more specific series to appear in the Series column instead of the default one.
suhair is offline   Reply With Quote
Old Yesterday, 02:54 PM   #11777
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,329
Karma: 5007213
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
You can change the series name (and number) to any value with replace_metadata on series or specifically to one of the other series with include_in_series.

Code:
[https://archiveofourown.org/works/99999]

## to an arbitrary value:
add_to_replace_metadata:
 series=>^.*$=>Series I Want [1]

## Or, instead, to one of the other series:
include_in_series:series01
But seriesUrl is hard coded to be immutable starting in the Mar 1 2026 release.

This might be a worthwhile reason to reverse that decision for seriesUrl... Let me think on it for a bit.
JimmXinu is offline   Reply With Quote
Old Yesterday, 05:07 PM   #11778
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,634
Karma: 81412473
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
Quote:
Originally Posted by JimmXinu View Post
If you don't mean the error you were talking about last and instead mean it just doesn't match, I would suspect the space between gender and species.

In practice, you may want " *" for most spaces for when authors do/don't include them.

If that doesn't help, you should know by now to include story URLs that exhibit the issue.
Ah yeah, it was a space Thanks, I feel sillly now
ownedbycats is offline   Reply With Quote
Old Yesterday, 07:16 PM   #11779
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,634
Karma: 81412473
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
Quote:
Originally Posted by JimmXinu View Post
But seriesUrl is hard coded to be immutable starting in the Mar 1 2026 release.

This might be a worthwhile reason to reverse that decision for seriesUrl... Let me think on it for a bit.
Ah crap, I modify seriesUrls to series copied from challenge/exchange colllections.

I was thinking of moving them to fanfictags anyways, I think on it
ownedbycats is offline   Reply With Quote
Old Today, 01:04 AM   #11780
suhair
Junior Member
suhair began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Apr 2025
Device: Galaxy 20 SM-G781U
Question

What I'm trying to do is for only three specific authors always replace series00 with series01 when there is a series01. I've tried this so far:

Code:
add_to_replace_metadata:
 series=>series00=>series01&&author=>AuthorA|AuthorB|AuthorC
One author has over 50 fic with a new catchall series for every year.
suhair is offline   Reply With Quote
Old Today, 01:26 PM   #11781
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,329
Karma: 5007213
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
Quote:
Originally Posted by suhair View Post
What I'm trying to do is for only three specific authors always replace series00 with series01 when there is a series01. I've tried this so far:

Code:
add_to_replace_metadata:
 series=>series00=>series01&&author=>AuthorA|AuthorB|AuthorC
One author has over 50 fic with a new catchall series for every year.
That's not going to work at all.

replace_metadata operates on the current value using regular expressions and doesn't have a way to bring in other metadata entry values.

personal.ini sections can be by site or story, but not author. It would nice logically, but that's collected after the config is already read.

To do it by author, the best I can think of is to use a custom column instead of the normal series column:

Code:
## Limit to AO3 site
[www.archiveofourown.org]

## Clear the value of 'series' for these authors.
add_to_replace_metadata:
 series=>^.*$=>&&author=~^(AuthorA|AuthorB|AuthorC)$

## Set #my_series custom column to series01, but then overwrite it
## if there's a value in 'series'.
add_to_custom_columns_settings:
 series01=>#my_series
 series=>#my_series
Actually, another, very kludgey way comes to mind:

Code:
## Limit to AO3 site
[www.archiveofourown.org]

## Put both series and series01 in 'series' as a list with a marker in between.
include_in_series:series,"<>",series01

## Keep series (as a list) in order
keep_in_order_series:true

## Take the second part (series01) for these specific authors,
## and the first part (series) for all others.
## 'series_LIST' says to operate on the whole list as a string,
## normal 'series' lines operate on each entry in the list.
add_to_replace_metadata:
 series_LIST=>^(.*), <>, (.*)$=>\2&&author=~^(AuthorA|AuthorB|AuthorC)$
 series_LIST=>^(.*), <>, (.*)$=>\1
NOTE!! This does not change seriesUrl. That will still be the original seriesUrl. The custom column idea is a lot safer.
JimmXinu is offline   Reply With Quote
Old Today, 02:13 PM   #11782
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,329
Karma: 5007213
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
New Test Version Posted

2026-03-09
- Make seriesUrl mutable again.

I can't think of why I made seriesUrl immutable, so it's changeable again.
JimmXinu is offline   Reply With Quote
Old Today, 06:03 PM   #11783
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,634
Karma: 81412473
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
Quote:
Originally Posted by JimmXinu View Post
New Test Version Posted

2026-03-09
- Make seriesUrl mutable again.

I can't think of why I made seriesUrl immutable, so it's changeable again.
Thank you
ownedbycats is offline   Reply With Quote
Reply

Tags
fanfiction


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[GUI Plugin] Open With kiwidude Plugins 405 02-09-2026 07:54 AM
[GUI Plugin] KindleUnpack - The Plugin DiapDealer Plugins 529 01-28-2026 10:32 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 07:32 PM.


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