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 11-06-2022, 07:48 PM   #7696
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,987
Karma: 75337983
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
This seems to work. When I find a fic to test with, I'll see if I can use include_metadata conditionals to exclude books with an actual series.

Code:
[archiveofourown.org]

## Copy collections to series
include_in_series:series,collections

include_metadata_pre:
 collections=~Exchange
Is there any good way to set the series index of specific series to 0.00? I have a feeling this would be something better handled by the Action Chains plugin, so not a big deal.

Last edited by ownedbycats; 11-06-2022 at 07:54 PM.
ownedbycats is online now   Reply With Quote
Old 11-06-2022, 08:10 PM   #7697
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
Technically, the series entry is 'Series Name [1]', so you should be able to set it with replace_metadata if you really want.

Although series without ordering rather defies the definition of 'series'.
JimmXinu is offline   Reply With Quote
Old 11-06-2022, 08:30 PM   #7698
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,987
Karma: 75337983
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
I use a series index of 0.00 to specifiy unordered/unknown-order series. Mostly my big stack of Golden Guides.
ownedbycats is online now   Reply With Quote
Old 11-06-2022, 10:12 PM   #7699
dailyalice
Geek of All Trades
dailyalice rocks like Gibraltar!dailyalice rocks like Gibraltar!dailyalice rocks like Gibraltar!dailyalice rocks like Gibraltar!dailyalice rocks like Gibraltar!dailyalice rocks like Gibraltar!dailyalice rocks like Gibraltar!dailyalice rocks like Gibraltar!dailyalice rocks like Gibraltar!dailyalice rocks like Gibraltar!dailyalice rocks like Gibraltar!
 
dailyalice's Avatar
 
Posts: 55
Karma: 100878
Join Date: Aug 2012
Location: Minneapolis
Device: Kindle Oasis (3rd gen)
Speaking of AO3 collections . . .

Just in case anyone finds this useful (and maybe many people already do this or something similar), but I have a custom column called "fests" (well, actually #fests of course) and then I have this in my personal.ini:
include_in_fests:collections,freeformtags

And then I clean up the data a bit in replace_metadata and then use stuff in include_metadata_post to pull out specific things into my fests column. I call it "fests" but I use it for communities & challenges & cons & archives & other stuff. Basically lots of things where relevant data might show up in AO3's collections, but I wanted a short list.

Now I have stuff like Yuletide and all manner of fandom & ship specific fests & whatnot in my "Fests" column, just for the collections i find relevant. (And it's not cluttered up with collections made by individuals unless I want them there.)

I included freeformtags in addition to collections because occasionally there are fests mentioned in tags but not in collections (often on older works, with community tags). I use tag hierarchies too (to gather all the fests for a particular fandom or ship together), but sometimes don't bother. I put all the years of Yuletide under one Yuletide tag for instance.

I really love include_metadata_post these days; I also use it for a primary ship (#mainship) column.
dailyalice is offline   Reply With Quote
Old 11-07-2022, 12:51 AM   #7700
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,987
Karma: 75337983
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
I feel like I may have asked this before, but answer may have changed with the recent changes to the cover generation code:

I created a column, #fanficcover, to differentiate between downloaded, generated, and manually-inserted covers. Can FFF populate at least the first one? Generate Cover can populate for generated covers, and manually-inserted is, well, manual. I found a metadata entry called 'coverSource' but not sure what it does.

EDIT: Turns out GC's 'update column' doesn't actually work when FFF calls it? Unless it's supposed to and is a bug that needs to be fixed (or something worth adding, though I suspect not), I can just manually fill it out on new fics.

Last edited by ownedbycats; 11-07-2022 at 05:39 AM.
ownedbycats is online now   Reply With Quote
Old 11-07-2022, 10:21 AM   #7701
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 feel like I may have asked this before, but answer may have changed with the recent changes to the cover generation code:

I created a column, #fanficcover, to differentiate between downloaded, generated, and manually-inserted covers. Can FFF populate at least the first one? Generate Cover can populate for generated covers, and manually-inserted is, well, manual. I found a metadata entry called 'coverSource' but not sure what it does.
FFF's cover_image can be used with custom_columns_settings and generate_cover_settings, but isn't available for other metadata processing.
From the Cover Settings Calibre Plugin wiki page:
Quote:
specific, first, default, old & force (plus the empty value for when FanFicFare Downloader finds no cover) are not just convenient labels, but also values set into the FanFicFare metadata entry cover_image. This is most useful with the generate_cover_settings setting mention in examples above and in more detail below.
Quote:
Originally Posted by ownedbycats View Post
EDIT: Turns out GC's 'update column' doesn't actually work when FFF calls it? Unless it's supposed to and is a bug that needs to be fixed (or something worth adding, though I suspect not), I can just manually fill it out on new fics.
GC updates columns? Huh. You'd have to take that up with kiwidude over in the GC thread. FFF calls GC's generate_cover_for_book() method.
JimmXinu is offline   Reply With Quote
Old 11-07-2022, 03:16 PM   #7702
VioletRed24
Junior Member
VioletRed24 began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Apr 2020
Device: Samsung Galaxy S8
Am I able to download from multiple author pages at once?

Hi, I hope this question hasn't already been asked (I did a quick search of the thread and didn't see it).

I'm starting to archive all of the stories by each author I follow on literotica.com. But that's well over 200 authors, so I'm trying to make this less of a hassle.

If I click "Download from URLs" I can add multiple individual story links at a time. But if I click "Get Story URLs from Web Page" I can only add one author's page link. It doesn't look like it but I gotta make sure, is there no way to paste all the author's page links I have at once and have it go through them one after the other? Or do I need to copy, paste, and start each author's link individually?
VioletRed24 is offline   Reply With Quote
Old 11-07-2022, 03:53 PM   #7703
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,987
Karma: 75337983
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
Only one page at a time, yes.

FFF isn't designed for bulk-archiving (it causes excessive traffic that may lead to sites trying to block your IP or even all FFF users in general), so I wouldn't try to bypass this.
ownedbycats is online now   Reply With Quote
Old 11-07-2022, 04:01 PM   #7704
VioletRed24
Junior Member
VioletRed24 began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Apr 2020
Device: Samsung Galaxy S8
Quote:
Originally Posted by ownedbycats View Post
Only one page at a time, yes.

FFF isn't designed for bulk-archiving (it causes excessive traffic that may lead to sites trying to block your IP or even all FFF users in general), so I wouldn't try to bypass this.
Dang..... Oh well, thank you for your help.
VioletRed24 is offline   Reply With Quote
Old 11-07-2022, 11:00 PM   #7705
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,987
Karma: 75337983
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
Quote:
Originally Posted by VioletRed24 View Post
I'm starting to archive all of the stories by each author I follow on literotica.com. But that's well over 200 authors, so I'm trying to make this less of a hassle.
I also suggest this if you haven't done it already:

Go to Preferences > Add your own column. Add a new long-text column, like this. (Set it to plain text—it's less prone to breakage.)

Click image for larger version

Name:	2022-11-07 23_57_25-Edit custom column.png
Views:	293
Size:	14.3 KB
ID:	197599

Go to FanFicFare's config, the Custom Columns tab. Set the "Saved metadata" column to the one you just created.

This way, if you want to make tweaks to various replace_metadatas or add a new column, you can use "Update Calibre metadata from Saved Metadata Column." This is a bit faster, reduces stress on the site servers, and provides a backup for stories later deleted.

Last edited by ownedbycats; 11-08-2022 at 01:08 AM.
ownedbycats is online now   Reply With Quote
Old 11-07-2022, 11:09 PM   #7706
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,987
Karma: 75337983
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
Quote:
Originally Posted by JimmXinu View Post
FFF's cover_image can be used with custom_columns_settings and generate_cover_settings, but isn't available for other metadata processing.
Since I'm not entirely sure what "other metadata processing" means, confirmation that a copy category wouldn't work? I tested the following on a few fics and it worked once and then stopped working. So I'm inclined to think the "successful" run was a user error, e.g. forgetting to clear the field beforehand

Code:
[defaults]

custom_columns_settings: 
 covertype=>#fanficcover

replace_metadata: 
 covertype=>(.*)=>Downloaded

add_to_extra_valid_entries:,oneshot,tagscategory,covertype

 include_in_covertype:cover_image

Last edited by ownedbycats; 11-08-2022 at 03:37 AM.
ownedbycats is online now   Reply With Quote
Old 11-09-2022, 09:29 AM   #7707
veviara
Junior Member
veviara began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Dec 2021
Device: Kobo Libra 2
Is there any way to use an already captured group in the conditional for replace_metadata? Or a workaround that I'm missing?

What I'm looking for is something that would allow me to capture a group and then modify it if that same group is also present in another tag e.g.:

Code:
characters=>([A-Za-z ]+)=>dark \1&&customtags=~dark \1
The problem with that ^^ approach is that the second reference to the capturing group is invalid, and while that does make sense it has also given me quite a few premature grey hairs. My current workaround is to include both characters and customtags in the same column on import, which kinda works, but doesn't solve all problems and comes with a different nightmare (cleanup). It feels like a problem which already has a solution but I cannot for the life of me find it?

(i already tried to post this once but it looks like something went wrong so im trying again. if it did work and there are two messages, well, thats why)
veviara is offline   Reply With Quote
Old 11-09-2022, 11:05 AM   #7708
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 veviara View Post
Is there any way to use an already captured group in the conditional for replace_metadata? Or a workaround that I'm missing?
...
(i already tried to post this once but it looks like something went wrong so im trying again. if it did work and there are two messages, well, thats why)
No, the regexps (matching key and conditional) are each separate and you can't carry groups across between them.

I don't really follow what you're trying to accomplish. A concrete example might help.

MR has restrictions on new users for the first 10 posts or so to prevent spammers. Your post was probably waiting for mod approval.
JimmXinu is offline   Reply With Quote
Old 11-09-2022, 12:00 PM   #7709
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
Since I'm not entirely sure what "other metadata processing" means, confirmation that a copy category wouldn't work? I tested the following on a few fics and it worked once and then stopped working. So I'm inclined to think the "successful" run was a user error, e.g. forgetting to clear the field beforehand
Most metadata entries are populated during the 'get metadata' phase. cover_image can be filled much later, depending on the value.

As currently coded, cover_image is being filled after covertype has already been cached as an empty list. And the metadata cache does not trace back through include_in_* settings.

IE, cover_image is uncached when set, but not entries derived from it, whether from include_in_* or replace_metadata conditionals. Most of the time, it doesn't matter; and the cache saves significant time for users with extensive metadata editing. Until now, I would have said all the time.

I am considering whether this corner case is worth addressing or not.

This feels a bit familiar. Was there a similar case before?
JimmXinu is offline   Reply With Quote
Old 11-09-2022, 12:44 PM   #7710
veviara
Junior Member
veviara began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Dec 2021
Device: Kobo Libra 2
Quote:
I don't really follow what you're trying to accomplish. A concrete example might help.
Well. AO3 has the character tags and the freeformtags, right? And authors will often put "extensions" of the character tags in the freeformtags e.g. "Harry Potter" in characters and "dark!Harry Potter" in freeformtags. I'd like to separate those "extensions" from the other freeformtags and connect them to the character tag. So what I am/was trying to do was to find a character tag, search through the freeformtags for mentions of that character and then modify the character tag accordingly. I planned to do hierarchical tags eg. "Harry Potter.dark", but it's not particularly important to me exactly how it's done as long as there is some connection between the character tag and the "extension". Does that make sense?

Quote:
MR has restrictions on new users for the first 10 posts or so to prevent spammers. Your post was probably waiting for mod approval.
Yes I got a message about that after posting the second time, I must have missed it the first time
veviara 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 06:28 PM.


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