Today, 12:04 PM | #10231 | |
Connoisseur
Posts: 89
Karma: 10
Join Date: Sep 2018
Device: iPad mini
|
Getting this error repeatedly with a fic from ff.net
Quote:
URL: https://www.fanfiction.net/s/14434163/1/ M3 Macbook running Sequoia 15.2 Calibre and plugin up to date. Browser: Chrome |
|
Today, 12:07 PM | #10232 |
Plugin Developer
Posts: 6,656
Karma: 4600391
Join Date: Dec 2011
Location: Midwest USA
Device: Kindle Paperwhite(10th)
|
Have you tried the test version? That sounds like this issue addressed a couple days ago.
|
Today, 02:40 PM | #10233 |
Junior Member
Posts: 3
Karma: 10
Join Date: Jun 2023
Device: none
|
Hello,
Is there a way to prepend a string to all fandom tags that don't match a given list? For example, I have all my Hobbit and LotR tags automatically renamed to "Tolkien.Hobbit" and "Tolkien.LotR" but my Stranger Things tag is just "Stranger Things (TV 2016)". Is there any code I can put in after add_to_replace_metadata, that if it the fandom tags don't match a given list of tags (in this case, if they don't start with "Tolkien." or match "Stranger Things (TV 2016)"), then to put "_Misc." in front of each tag that doesn't match? I'd like to be able to see at a glance which fandom tags need to be cleaned up and to reduce the clutter from random one-off fandoms in my fandom tags list and I think this might be the way to do it. Thank you! |
Today, 03:02 PM | #10234 |
Plugin Developer
Posts: 6,656
Karma: 4600391
Join Date: Dec 2011
Location: Midwest USA
Device: Kindle Paperwhite(10th)
|
Each replace_metadata line is considered separately, there isn't a mechanism for "didn't match any other line".
One option would be: You might add your "_Misc." prefix to all entries before looking for specifics like Tolkien and then remove it as part of setting Tolkien. A second option would be: There are '.'s in some fandoms, so we can't use that reliably detect already prefixed lines. But it would be possible if you use something other than '.' as the separator during processing--something reasonably expected to be unused anywhere else. Subsitute in "Tolkien__MYDELIMITER__Hobbit" for example. Then add lines to first prepend your "_Misc." to any entry that doesn't contain "__MYDELIMITER__" (needs to use negative lookahead (?!...) ) and then a final line to change "__MYDELIMITER__" back to '.'. |
Today, 04:37 PM | #10235 | |
Junior Member
Posts: 3
Karma: 10
Join Date: Jun 2023
Device: none
|
Quote:
I added "category=>(.*)=>_Misc.\1" to replace_metadata, but it's adding "_Misc." to both the the beginning and the end of each fandom tag. Did I do that correctly, or should I maybe add it somewhere other than replace_metadata? |
|
Today, 04:49 PM | #10236 | |
Junior Member
Posts: 3
Karma: 10
Join Date: Jun 2023
Device: none
|
Quote:
Thanks again! |
|
Today, 05:51 PM | #10237 |
Plugin Developer
Posts: 6,656
Karma: 4600391
Join Date: Dec 2011
Location: Midwest USA
Device: Kindle Paperwhite(10th)
|
I would use "category=>^(.*)$=>_Misc.\1" adding ^ (beginning string) and $ (end of string) anchors, just to be sure. There have been cases in past where it was necessary.
|
Tags |
fanfiction |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[GUI Plugin] KindleUnpack - The Plugin | DiapDealer | Plugins | 495 | 10-19-2024 07:06 AM |
[GUI Plugin] Open With | kiwidude | Plugins | 403 | 04-01-2024 09:39 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 |