![]() |
#4741 |
Junior Member
![]() Posts: 5
Karma: 10
Join Date: Oct 2020
Device: none
|
Metadata Management
Hello! First off - thank you for everything you do with managing this plug-in, it is truly great, and I've visited this forum a few times in the past to get tips or find similar questions to my own
I was hoping to get some guidance on what I may be doing wrong with some metadata management I'm trying to do, specifically tag wrangling with AO3 For example, there is a tag labeled "2k words of angst" that I am trying to remove by removing all tags that start with a number Code:
exclude_metadata_post: genre=~^[0-9] Code:
[defaults] is_adult:true [epub] [archiveofourown.org] #[test1.com] #extragenres: 2k words of angst #extracharacters: Peter, Bruce, Barry, Tom [overrides] exclude metadata_post: genre=~^[0-9] I then added extracharacters: to see if it would update, and when I re-ran it, it added the characters, but still has the old list of tags Is there something wrong in my settings perhaps? I do not have "Keep Existing Tags when Updating Metadata?" checked on --------------------------------------------------------------------------------- Separate question I have a custom column named #time for timelines I'd like to extract only the tags that start with "Post" from the tag list and move it to the custom column, and apply separate filtering to the genres vs time columns, but I'm have trouble following how to set up personal.ini to do this and how to reference the custom vs genres column I tried following what you went through with this thread by adding what's noted below, but it had no affect on the custom column Code:
add_to_extra_valid_entries:,time include_in_time:genre exclude_metadata_post: time=~^Post Separate question (sorry, didn't realize I had a few lined up I was wanting to ask about) This is in relation to wrangling ships Some fics are tagged as "Harry & Ron" and others as "Ron & Harry" - is there a way to write this into personal.ini to align them into the same tag? Currently I'm using: Code:
replace_metadata: ships=>Ron & Harry=>Harry & Ron Last question for now with regards to ships: This is something that's a personal irk, but I like all the names to be capitalized in the ship listing - so far it's just one ship that is doing this (the individual names are actually supposed to be capitalized, and are in other ships listings, just not this particular one for some reason) I tried manually replacing it in personal.ini with Code:
replace_metadata: ships=>Olivia dunham & Peter Bishop=>Olivia Dunham & Peter Bishop Sorry for all the questions at once, I really appreciate any guidance you can provide! |
![]() |
![]() |
![]() |
#4742 |
Plugin Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,974
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
|
New Test Version Posted
2020-10-25 - Fix for Xenforo2 change (SB/SV) |
![]() |
![]() |
Advert | |
|
![]() |
#4743 | |
Plugin Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,974
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
|
Quote:
![]() First, without example story URLs that exhibit the problems, all I can do is speculate. Whereas, if I have actual story URLs, I can try it and see the issue. That's a general rule around here--doesn't matter what you want help with--I want a story URL that exhibits the issue. Second, you apparently have a quite complex metadata setup. You may think you've isolated the parts that cause your issues--and you may well be right. However, if you're going to come to with five different, complex issues at once, I'd like to have your complete personal.ini to test with. You can use the 'View "Safe" personal.ini' button to automatically strip your user/pass settings. Alternatively, if you are strongly opposed to sharing your settings, I will try a stripped down version, if you confirm that it still exhibits the issues described. Third, AO3 tag normalizing/wrangling comes up over and over again. I'm not going to go over all of it again, but AO3's decision to allow authors to input basically anything--and any number of anything--as tags makes normalizing problematic at best. Personally, I consider it futile. But I will help with specific problems. |
|
![]() |
![]() |
![]() |
#4744 | |
Junior Member
![]() Posts: 5
Karma: 10
Join Date: Oct 2020
Device: none
|
Quote:
I actually have been using a stripped down personal.ini, as that was the first I thing I used to start testing with when trying to track down the issues Working through the first question a bit more, I believe I did track down the issue - I was using "Update Existing Fanfiction Books" - this works on fics that still have tags remaining after the updated filtering in personal.ini is applied, but the fics I was having problems with should have had no tags after the filtering is applied - I then deleted the fic, and re-brought it in and it was filtered correctly with no tags, this was also the case for using test1.com Deleting and re-adding also worked for the capitalization issue for ships, even though I wasn't trying to apply any filtering or be left with zero tags in that case Not sure if that's what is supposed to happen or if there was something obvious I was missing regarding that issue, so I apologize if that was the case - if you'd still like an example I can provide one For the custom column question - here is an example fic: https://archiveofourown.org/works/19784374 - and below is the personal.ini, similar to before - mainly just looking for any guidance on how to properly be referencing custom columns in personal.ini Code:
[defaults] is_adult:true [epub] [archiveofourown.org] [overrides] include_subject_tags: genre add_to_extra_valid_entries:,time include_in_time:genre exclude_metadata_post: time=~^Post Code:
[defaults] is_adult:true [epub] [archiveofourown.org] [overrides] include_subject_tags: genre replace_metadata: ships=>Peter Parker/Michelle Jones=>Michelle Jones/Peter Parker |
|
![]() |
![]() |
![]() |
#4745 | ||||||
Plugin Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,974
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
|
Quote:
Quote:
Calibre, on the other hand, keeps a database table of tag values for the whole library; and it only wants you to have one 'case' version. If you manually change it, Calibre appears to change the case for that tag on all books. But if you do it through FFF, calibre will map it to the same case as it's existing tag. Quote:
From (plugin-)defaults.ini: Spoiler:
Quote:
From (plugin-)defaults.ini: Spoiler:
Quote:
I will make some effort to support the last minor of each major calibre version back to v2 (so v2.85.1, v3.48 and v4.23). However, I don't make it a habit of testing against older versions (or OS's other than Win10) unless I have reason to do so, like a specific complaint. Unless a user tells me otherwise, I assume everyone is using the latest FFF on the latest Calibre. Yes, there is a github repo with all the past releases: From the first post of the thread: Quote:
|
||||||
![]() |
![]() |
Advert | |
|
![]() |
#4746 |
Custom User Title
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 10,995
Karma: 75337983
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
I can confirm that clearing the tags (except for the url identifier) always seems to work, so long as none of the column updates are set to "new only."
|
![]() |
![]() |
![]() |
#4747 | ||||
Junior Member
![]() Posts: 5
Karma: 10
Join Date: Oct 2020
Device: none
|
Quote:
Quote:
Quote:
Quote:
Thank you for creating and providing this tool, I appreciate the quick responses |
||||
![]() |
![]() |
![]() |
#4748 |
Custom User Title
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 10,995
Karma: 75337983
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
Code:
replace_metadata: ## Removal of challenge series series=>(Whumptober .*)=> ![]() Last edited by ownedbycats; 10-25-2020 at 04:09 PM. |
![]() |
![]() |
![]() |
#4749 | |||||
Plugin Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,974
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
|
Quote:
Quote:
If you want to use the programming metaphor, you declare a new variables with extra_valid_entries. You can assign to them with include_in_varname and change the values with replace_metadata and the in/exclude settings. custom_columns_settings can then assign those variables to custom calibre columns by calibre 'lookup/search name'. All calibre custom column lookup names begin with '#'. Quote:
The last time there was a change that definitely was effected by calibre version was noted: Quote:
Quote:
Calibre, it seems, doesn't clear the standard series column if set to empty string('') by FFF. ![]() |
|||||
![]() |
![]() |
![]() |
#4750 |
Custom User Title
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 10,995
Karma: 75337983
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
Code:
## Removal of challenge series series=>(Whumptober .*)=> seriesHTML=>(Whumptober .*)=> ![]() |
![]() |
![]() |
![]() |
#4751 |
Plugin Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,974
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
|
Well, you've yet again found another weird little corner case. Congratulations!
![]() Title page uses seriesHTML, which FFF constructs as an HTML when it finds that it has a seriesUrl value, or just text w/o link if there's a series, but no seriesUrl: Code:
linkhtml="<a class='%slink' href='%s'>%s</a>" if self.getMetadataRaw('seriesUrl'): self.setMetadata('seriesHTML',linkhtml%('series', self.getMetadata('seriesUrl', removeallentities, doreplacements), self.getMetadata('series', removeallentities, doreplacements))) elif self.getMetadataRaw('series'): self.setMetadata('seriesHTML',self.getMetadataRaw('series')) Trying to clear seriesHTML based on the text value fails, because 'Whumptober' was already removed. I will think about whether the code should be changed--IE, what else might break if I fix this issue in code. In the meantime, this works: Code:
seriesHTML=>.*=>&&seriesUrl=>https://archiveofourown.org/series/1951183 series=>.*=>&&seriesUrl=>https://archiveofourown.org/series/1951183 Last edited by JimmXinu; 10-25-2020 at 05:44 PM. Reason: typo fixes |
![]() |
![]() |
![]() |
#4752 |
Custom User Title
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 10,995
Karma: 75337983
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
Thanks. If it doesn't break anything else I'd appreciate a fix. Until then since challenge fics tend to be oneshots I can just manually fix it with ebook-editor.
|
![]() |
![]() |
![]() |
#4753 |
Plugin Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,974
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
|
New Test Version Posted
2020-10-25 - Change seriesHTML to not be filled without series. - Fix for Xenforo2 change (SB/SV) |
![]() |
![]() |
![]() |
#4754 |
Custom User Title
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 10,995
Karma: 75337983
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
Confirm that the new seriesHTML fix worked.
![]() |
![]() |
![]() |
![]() |
#4755 | ||
Junior Member
![]() Posts: 5
Karma: 10
Join Date: Oct 2020
Device: none
|
Quote:
Quote:
|
||
![]() |
![]() |
![]() |
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 |