![]() |
#4261 |
Custom User Title
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,034
Karma: 75555555
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
It worked! Thank you.
Question: Is that whole bit of code supposed to appear purple in the editor? The normal "add_to_replace_metadata" has blue and green and white text but if I put it under the URL it turns the whole thing purple. (I'm in dark mode if that matters.) I'm not sure if that's a bug. |
![]() |
![]() |
![]() |
#4262 |
Plugin Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,993
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
|
Individual story URL sections are purple. If the section 'name' isn't a recognized story URL it goes to red.
Which keywords are valid depends on site/section and I vaguely recall that it was problematic to apply to individual story sections, so they got their own color. |
![]() |
![]() |
Advert | |
|
![]() |
#4263 |
Custom User Title
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,034
Karma: 75555555
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
On the topic of the text colours: This might not be possible at all within the code, but is there a way to turn the blue colour something a bit lighter if Calibre is in dark mode? It's a little eye-searing.
EDIT: WebAIM's Contrast Checker can be helpful to check contrast; the background in dark mode is #121212 ![]() ANOTHER EDIT: Also, putting [archiveofourown.org] (presumably other site overrides too) turns it such a dark blue that I couldn't really read it at all on the dark background. ![]() Last edited by ownedbycats; 07-03-2020 at 04:45 PM. |
![]() |
![]() |
![]() |
#4264 |
Custom User Title
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,034
Karma: 75555555
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
Another topic, for another post:
I noticed that Fanfiction.net author pages have both the author's own stories and their favourited fics on the same page, which really makes a mess when trying to use "get story URLs from page." Is there any trick to getting just the author's own stories? EDIT: I discovered that changing the www. to m. works. Though it only shows 20 stories at a time. Oh well. Last edited by ownedbycats; 07-03-2020 at 04:42 PM. |
![]() |
![]() |
![]() |
#4265 |
Plugin Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,993
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
|
New Test Version Posted
2020-07-03 - Change INI edit highlight colors when dark theme. |
![]() |
![]() |
Advert | |
|
![]() |
#4266 |
Custom User Title
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,034
Karma: 75555555
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
All the colours are a lot easier to read now. Thank you.
![]() |
![]() |
![]() |
![]() |
#4267 |
Custom User Title
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,034
Karma: 75555555
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
Question: Is there way to use an and statement in the In/exclude Metadata? I'd like to exclude "crossover" if it has two specific fandoms but the regexes I tried for matching multiple strings didn't really work.
Also something I found while trying to puzzle that out myself: The crossover crosscategory thing seems to have stopped working on AO3; I downloaded several multifandom fics to check and it doesn't add crossover to any of them. It does still work on FFNet though. I think it was working before so I'm not sure if AO3 changed something or if I managed to break it myself. Here's my ini file in the more likely event of the latter: Spoiler:
Thank you ![]() Last edited by ownedbycats; 07-04-2020 at 12:47 AM. |
![]() |
![]() |
![]() |
#4268 | ||
Plugin Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,993
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
|
Quote:
Quote:
Have I mentioned my opinion about the futility of attempting to normalize AO3 metadata lately? |
||
![]() |
![]() |
![]() |
#4269 | |
Custom User Title
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,034
Karma: 75555555
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
Quote:
|
|
![]() |
![]() |
![]() |
#4270 | |
Plugin Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,993
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
|
Quote:
![]() Short answer: The genre(w/add_genre_when_multi_category) -> crosscat -> category trick isn't going to work with AO3 and a few other sites; those that don't internally collect category. Arguably, it shouldn't work at all. Long answer: First problem -- from defaults.ini under [archiveofourown.org]: Code:
## AO3 uses the word 'category' differently than most sites. The ## adapter used to be hardcoded to include the site specific metadata ## fandom in the standard metadata field category. By making it ## configurable, users can change it. include_in_category:fandoms The obvious answer to that is personal.ini: Code:
[archiveofourown.org] include_in_category:fandoms,crosscat For reference, here's the INI code snippet I've been experimenting with: Code:
[defaults] is_adult:true ## Add "Crossover" to genre add_genre_when_multi_category:Crossover ## a tmp var, basically. ## Need to add to your add_to_extra_valid_entries line. add_to_extra_valid_entries:,crosscat ## fill with genre skipping replace/include/exclude include_in_crosscat:genre.NOREPL ## only include Crossover in crosscat. ## Again, incorporate with your existing, if you have one. add_to_include_metadata_pre: crosscat==Crossover ## remove Crossover from genre. ## Again, incorporate with your existing, yada yada yada. #add_to_exclude_metadata_post: genre==Crossover include_in_category:category,crosscat [archiveofourown.org] include_in_category:fandoms,crosscat
Point 4 is where ffnet (sites that collect category directly) differ from AO3 (sites that have fandoms, etc and load it into category) When the recursion check bails, it does so returning the original category value--populated for ffnet, but empty for AO3. That's the part that "arguably, shouldn't work at all". At that point, the current code also caches the failed value for crosscat, which is why the crosscat value disappears. That much I am prepared to call a bug that should be fixed. I even have the fix for it. What I can't actually find is when the add_genre_when_multi_category setting was added and why. Earliest I can find was 6 years ago and it wasn't new then. I'm tempted to remove it for the sin of being too kludgey to live. But then I'd have to come up with some kind of replacement, I suppose. |
|
![]() |
![]() |
![]() |
#4271 |
Junior Member
![]() Posts: 4
Karma: 10
Join Date: Jul 2020
Device: Samsung Galaxy
|
Hi there, I have a question: when using Fanficfare together with Epubmerge by chance is there a way to change the name of the Anthology automatically? As in calling it a "series", a "collection" or whatnot?
Thank you! ![]() |
![]() |
![]() |
![]() |
#4272 |
Plugin Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,993
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
|
You can change that in personal.ini settings.
From defaults.ini [defaults] section: Code:
## Uses a python template substitution. The ${title} is the default ## title of a new anthology, <series name> in the case of a series, or ## the first book title otherwise. This is only applied to new ## anthologies. anthology_title_pattern:${title} Anthology ## Add tag(s) for anthology (series) books. Set to empty to not add ## any anthology tags. anthology_tags:Anthology |
![]() |
![]() |
![]() |
#4273 |
Junior Member
![]() Posts: 4
Karma: 10
Join Date: Jul 2020
Device: Samsung Galaxy
|
Yay thanks so much, it worked perfectly!
![]() |
![]() |
![]() |
![]() |
#4274 | |
Plugin Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,993
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
|
Quote:
Code:
[archiveofourown.org] include_in_fandoms:fandoms,crosscat Spoiler:
So effectively the same thing. |
|
![]() |
![]() |
![]() |
#4275 |
Custom User Title
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,034
Karma: 75555555
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
Hm, I can't seem to get that code working, same fic I tested before. Are there any mistakes I did when putting it in?
Spoiler:
|
![]() |
![]() |
![]() |
Tags |
fanfiction |
|
![]() |
||||
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 |