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 01-21-2026, 12:48 PM   #11626
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,250
Karma: 5007213
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
New Test Version Posted

2026-01-21
- Image Handling: Cache image failure within a story download
- Image Handling: Save original URL on image failure marked 'failedtoload'
- Image Handling: Fix dedup_img_files in new handling

Failure handling improved.

dedup_img_files still has one oddity that it changes the origurl/longdesc to the dedup'ed image, but only on the next update.
JimmXinu is offline   Reply With Quote
Old 01-21-2026, 04:22 PM   #11627
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,500
Karma: 81408765
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
Question: AO3 series page only displays 20 books before new page. Put one with severa pages in, got every story. How does it work?
ownedbycats is online now   Reply With Quote
Advert
Old 01-21-2026, 04:46 PM   #11628
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,250
Karma: 5007213
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
AO3, or rather base_otw_adapter, is one of the few (only?) supported sites with dedicated code for collecting series; including following the pagination.
JimmXinu is offline   Reply With Quote
Old 01-21-2026, 05:44 PM   #11629
Eridyne
Junior Member
Eridyne began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Jan 2026
Device: Kobo Libra Colour
Okay. For a specific story example, I'll use https://forums.sufficientvelocity.co...a-varga.32119/ as the URL.

The intent is to concatenate an arbitrary string, which for this example is "WormFic - ", with the contents of the preexisting 'site' variable, which in this case is "forums.sufficientvelocity.com".
The end result should be the string "WormFic - forums.sufficientvelocity.com", and that should end up in the custom Calibre column "collection", for use with Kobo's Collections feature.

As mentioned, I can get either a string (e.g., "WormFic") or the 'site' variable (e.g., "forums.sufficientvelocity.com") into the "collection" column just fine, but I'd like to combine those, preferably without adding redundant columns to the Calibre DB.
Eridyne is offline   Reply With Quote
Old 01-21-2026, 06:39 PM   #11630
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,250
Karma: 5007213
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
Quote:
Originally Posted by Eridyne View Post
The intent is to concatenate an arbitrary string, which for this example is "WormFic - ", with the contents of the preexisting 'site' variable, which in this case is "forums.sufficientvelocity.com".
The end result should be the string "WormFic - forums.sufficientvelocity.com", and that should end up in the custom Calibre column "collection", for use with Kobo's Collections feature.
As mentioned, there's no specific string concat mechanism, but replace_metadata can do a lot. Here's one approach.

First, don't change FFF's site metadata entry--it's assumed to be a domain name and used internally in epub metadata. So we'll make a copy.

Second, I assume you don't actually mean it when you say an arbitrary string. You want Worm fics specifically.
Code:
[defaults]
add_to_extra_valid_entries:,cat_site
include_in_cat_site:site

add_to_replace_metadata:
 cat_site=>^(.*)$=>WormFic - \1&&category==Worm
## Add more lines for Star Trek, Warhammer, whatever.
## Be aware you could get more than one then.
It's honestly probably easier to turn it around and copy category and append site name, but this is what you asked for.

And you use custom_columns_settings to populate the Calibre column with cat_site. You said you have that part already.
JimmXinu is offline   Reply With Quote
Advert
Old 01-21-2026, 07:10 PM   #11631
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,500
Karma: 81408765
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
Question. Maybe asked before but the search here is awful

On AO3, & is platonic, / is romantic. Some authors tag both of them on works.


So, say that a fanfic has "Shepard & Vakarian, Shepard/Vakarian," or "Kirk & Spock, Kirk/Spock." I'd like to remove the & tag in this instance. Conditionals don't work when its the same metadata. StoryUrl sections to exclude would work, but enough effort that not worth bother. Any other way?
ownedbycats is online now   Reply With Quote
Old 01-21-2026, 09:56 PM   #11632
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,250
Karma: 5007213
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
Quote:
Originally Posted by ownedbycats View Post
So, say that a fanfic has "Shepard & Vakarian, Shepard/Vakarian," or "Kirk & Spock, Kirk/Spock." I'd like to remove the & tag in this instance. Conditionals don't work when its the same metadata. StoryUrl sections to exclude would work, but enough effort that not worth bother. Any other way?
This seems to work:
Code:
add_to_replace_metadata:
 ships_LIST=>([^,]+) &(?:amp;)? ([^,]+), \1/\2=>\1/\2
Won't work if ships aren't in order. Also benefits from sort_ships:true. Will fail when an author inevitably misspells a name in one ship, but not the other.

Something else to note:
Code:
## By default, entries listed in include_subject_tags are used as
## lists, skipping any <entry>_LIST processing in
## replace_metadata/etc.  You can instead use <entry>_LIST in
## include_subject_tags to get the whole list as one string.
So you need to change ships to ships_LIST in include_subject_tags if you want this to work for EPUB subjects and Calibre's Tags.
JimmXinu is offline   Reply With Quote
Old Yesterday, 02:30 AM   #11633
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,500
Karma: 81408765
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
It works!
ownedbycats is online now   Reply With Quote
Old Yesterday, 03:34 PM   #11634
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,250
Karma: 5007213
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
New Test Version Posted

2026-01-22
- Image Handling: Rename dedup'ed images on first pass, too.
- Image Handling: Remove unused images properly with dedup_img_files
JimmXinu is offline   Reply With Quote
Old Today, 09:58 AM   #11635
Demanih
Junior Member
Demanih began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Oct 2019
Device: note4
When saving the history from ficbook.net the formatting of the text is lost, all in one line ((
Demanih is offline   Reply With Quote
Old Today, 11:23 AM   #11636
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,250
Karma: 5007213
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
Quote:
Originally Posted by Demanih View Post
When saving the history from ficbook.net the formatting of the text is lost, all in one line ((
.... If you're just venting, okay.

But if you're looking for help, I have no idea what you're talking about.
JimmXinu 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 01:54 PM.


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