![]() |
#8701 | |
Plugin Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,980
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
|
Quote:
Unless you can point to several stories like this, I'm going to declare this story a site bug that FFF isn't going to address. Last edited by JimmXinu; 07-23-2023 at 12:20 AM. Reason: grammar fix |
|
![]() |
![]() |
![]() |
#8702 | |
Plugin Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,980
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
|
Quote:
This looks very much like you are using some vendor packaged version of Calibre and possibly FFF plugin as well. I don't support those, sorry. |
|
![]() |
![]() |
![]() |
#8703 |
Connoisseur
![]() Posts: 97
Karma: 10
Join Date: Sep 2018
Device: iPad mini
|
Okay, so, I’ve standardized all Ons to appear as Original Character. I’ve also got all the characters I’d usually come across in
characters=~^(CHARACTER)&&ships=~^(CHARACTER)$ tags to keep them from duplicating in my tags. I’ve also got it set to only include / ships What I’d like to be able to do is have Canon/OC ships appear as characters instead—unless the canon character is already in a ship. So, basically, if I have a fic that’s Spike/Buffy Summers, Buffy Summers/Original Character, I’d want the Original Character to appear as a character. If the only ship was Spike/Original character, then I’d want them both to show up as characters. (the work would also be tagged Canon/OC Ship, I’m just trying to Lower the number of tags.) It might not be possible, but I’m only starting to get how regexs really work, so thought I’d put it out there. |
![]() |
![]() |
![]() |
#8704 |
Zealot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 125
Karma: 295674
Join Date: Jul 2021
Device: iPhone
|
I'm trying to understand why my test entries aren't being used despite including only them as subject tags.
Basically what I'm trying to do is retrieving the first item in a list. I've managed to do this (maybe??) as shown on the title page, but for whatever reason it's taking other entries as subject tags. I didn't see any conflicting settings on overrides/defaults. Here's the relevant code: Spoiler:
Result: (Calibre's tags showing prefix_category and prefix_ships as the entries, but I have first_category and first_ship in include_subject_tags) Spoiler:
It looks like despite editing the string as a list the items still exist. |
![]() |
![]() |
![]() |
#8705 |
Connoisseur
![]() Posts: 72
Karma: 12
Join Date: Apr 2010
Location: Pittsburgh area
Device: prs-505,900,T2
|
|
![]() |
![]() |
![]() |
#8706 | |
Plugin Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,980
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
|
Quote:
The code for getting include_subject_tags is specifically calling for the lists (keeplists=True) which bypasses _LIST processing. getSubjectTags() uses lists so it doesn't need to re-split things again. It doesn't matter for Calibre tags, but does very much for epub tags. IE, if genre contains ['Action','Comedy'], you want to get: <dc:subject>Action</dc:subject> <dc:subject>Comedy</dc:subject> Not: <dc:subject>Action, Comedy</dc:subject> That code--or rather its predecessor--almost certainly predates _LIST. And likely replace_metadata, etc. It's hard to track exact history past ~8 years ago due to the project name changing, code restructuring, and the project moving from code.google to github all at the same time. So in all likelihood, I've just never considered this corner case before. And I'm not entirely sure how to address it.
![]() BTW, kudos for figuring out teststory and using it well for its intended purpose. |
|
![]() |
![]() |
![]() |
#8707 | |
Plugin Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,980
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
|
Quote:
In some ways, this gives the user more control because they can use join_string_X to use a different separator than comma(,) to force an entry to be all one Tag, with a label even: <dc:subject>Genre: Action; Drama<dc:subject> This does cause a change in behavior from the existing code: Value "A, B" will be come tags "A" and "B" instead of "A; B" in Calibre's tags. In practice, I first expected this to be rare. But searching my own library found tags "House; M.D." and several variations on "Title; The" which were ',' on the site. ~100 books in my library of ~6200. With the proposed change, these would end up as tags "The" and "Title". All of my examples come from tthfanfic.org, but how many other sites do something similar? This could be handled with a couple replace_metadata lines. Or even a simple category,genre=>,=>; but I hesitate a lot to add add_to_replace_metadata lines to defaults.ini. And doing it in code would be worse. So still thinking... ![]() |
|
![]() |
![]() |
![]() |
#8708 |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 97
Karma: 100000
Join Date: Nov 2010
Device: KOA3, KV, KOA2
|
Having some trouble with Scribblehub and Flaresolverr. I tried to update this story and just got timeout notices for the challenges. I updated Flaresolverr and still got the same timeouts. Any help would be appreciated.
Edited to remove NSFW link. My apologies. Last edited by riothamus; 07-23-2023 at 07:51 PM. |
![]() |
![]() |
![]() |
#8709 |
Plugin Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,980
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
|
New Test Version Posted
2023-07-23 - Filter cookies for flaresolverr - Add _LIST option to include_subject_tags(/extra_subject_tags), refactor So as usual, I decided changing existing behavior when it isn't very definitively broken is a Bad Thing. Instead, I added a _LIST feature to include_subject_tags. defaults.ini now says: Code:
## include_subject_tags: entries to make epub subjects and calibre tags ## lastupdate creates two tags: "Last Update Year/Month: %Y/%m" and "Last Update: %Y/%m/%d" ## ## 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. ## ## You can also use <entry>.SPLIT to split each value in the entry on ## ',' for individual values. .SPLIT was basically obsoleted by \, ## splitting, but may still be used in some users' config. Can also ## be combined with _LIST as <entry>_LIST.SPLIT to get both ## <entry>_LIST processing in replace_metadata/etc *and* split by ',' include_subject_tags: extratags, genre, category, characters, ships, status So with this test version, culytera just needs: Code:
include_subject_tags:first_ship_LIST,first_category_LIST ![]() |
![]() |
![]() |
![]() |
#8710 | |
Plugin Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,980
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
|
Quote:
BTW, I didn't look, but I'd guess that a story tagged 'Smut' is NSFW and probably shouldn't be direct linked here. (At least it wasn't naked pictures right on top like some story links.) |
|
![]() |
![]() |
![]() |
#8711 | |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 97
Karma: 100000
Join Date: Nov 2010
Device: KOA3, KV, KOA2
|
Quote:
|
|
![]() |
![]() |
![]() |
#8712 |
Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 32
Karma: 2464
Join Date: Dec 2020
Location: Vancouver, Canada
Device: iPad, Mac Mini M4 Pro
|
Not sure if this is something with MY setup or a more general problem. As of today, the plugin gives me the file not found in cache error when it was working perfectly yesterday. The version on my desktop is Calibre 6.23 and fanficfare 4.25.10. But, if I go to my laptop, where the version is Calibre 6.15.1 and fanficfare is 4.22.1, the download works, and I have not changed anything. I'm on a Mac using Chrome if that makes a difference. The version of Chrome on my desktop is 115.0.5790.102 and cache is set to -1. Also, I turned off my VPN, and no difference.
An update If I turn off use browser cache only and make open page in browser true, I get this message: 403 Client Error: Forbidden for url: https://www.fanfiction.net/s/1420059...e-Painted-Veil update 2: AO3 is fine ... no problem updating. Looks like its a FFN issue. Stephen Last edited by booster-t; 07-24-2023 at 12:29 AM. |
![]() |
![]() |
![]() |
#8713 | ||
Zealot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 125
Karma: 295674
Join Date: Jul 2021
Device: iPhone
|
Quote:
![]() Quote:
Now I'm testing lists where I want to only keep a certain item (in categories, not prefix_categories) when it's the only one that exists, while excluding it when a different entry exists. For example, I want "Dragon Age" to be kept when *Inquisition/Origins/II aren't one of the entries as well. If one of those 3 exists, I want "Dragon Age" excluded from the list. I've tested something similar with Mass Effect and Mass Effect: Andromeda/Mass Effect Trilogy and for some reason, my regex worked with Mass Effect but not Dragon Age. Here are the tests (long image). The code: Spoiler:
Last edited by culytera; 07-24-2023 at 10:20 AM. Reason: Changed image host |
||
![]() |
![]() |
![]() |
#8714 | |
Plugin Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,980
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
|
Quote:
|
|
![]() |
![]() |
![]() |
#8715 | |
Plugin Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,980
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
|
Quote:
In this case, you can't use use category_LIST in conditionals for category, that would recurse. The debug output will warn you about it: 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 |