Yesterday, 12:04 PM | #10231 | |
Connoisseur
Posts: 91
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 |
|
Yesterday, 12:07 PM | #10232 |
Plugin Developer
Posts: 6,659
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.
|
Yesterday, 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! |
Yesterday, 03:02 PM | #10234 |
Plugin Developer
Posts: 6,659
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 '.'. |
Yesterday, 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? |
|
Yesterday, 04:49 PM | #10236 | |
Junior Member
Posts: 3
Karma: 10
Join Date: Jun 2023
Device: none
|
Quote:
Thanks again! |
|
Yesterday, 05:51 PM | #10237 |
Plugin Developer
Posts: 6,659
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.
|
Yesterday, 08:24 PM | #10238 | |
Connoisseur
Posts: 91
Karma: 10
Join Date: Sep 2018
Device: iPad mini
|
Quote:
|
|
Yesterday, 08:31 PM | #10239 |
Junior Member
Posts: 4
Karma: 10
Join Date: Mar 2016
Device: Kobo Libra Color
|
I'm trying to configure my personal.ini to not import chapter summaries. And I did, but now I'm not getting the work summary, either. Is there a line that will still let it pull the work summary, but not the individual chapter summaries?
|
Yesterday, 08:32 PM | #10240 |
Connoisseur
Posts: 91
Karma: 10
Join Date: Sep 2018
Device: iPad mini
|
Nope, installed the test and got this:
HTTP Error in FFF 'Page not found or expired in Browser Cache (see FFF setting browser_cache_age_limit)'(428) URL:'https://www.fanfiction.net/s/14434163/1/Death-By-a-Thousand-Cuts' https://www.fanfiction.net/s/1443416...-Thousand-Cuts I tried both Chrome and Safari |
Yesterday, 09:08 PM | #10241 | |
Plugin Developer
Posts: 6,659
Karma: 4600391
Join Date: Dec 2011
Location: Midwest USA
Device: Kindle Paperwhite(10th)
|
Quote:
What site, what settings have you changed, and can you provide an example story URL? Not all stories have all types of notes. |
|
Yesterday, 09:08 PM | #10242 | |
Plugin Developer
Posts: 6,659
Karma: 4600391
Join Date: Dec 2011
Location: Midwest USA
Device: Kindle Paperwhite(10th)
|
Quote:
OTOH, if you usually use open_pages_in_browser:true, and are on Mac, you might be seeing this issue where apparently Mac doesn't want to let FFF/Calibre open URLs in browser. |
|
Yesterday, 09:34 PM | #10243 | |
Junior Member
Posts: 4
Karma: 10
Join Date: Mar 2016
Device: Kobo Libra Color
|
Quote:
Oh, sorry. That's what I get for posting while I'm on headache drugs. The site is AO3. Here's a link to one of mine: https://archiveofourown.org/works/22090135 It's not restricted to logged in users or anything. Here's the custom settings I'm using in personal.ini: exclude_notes:authorheadnotes,chapterheadnotes,cha pterfootnotes,authorfootnotes,chaptersummary,inspi redlinks It is excluding the chapter summaries, which I want, but it's also including the main story summary. That's the problem. Thanks for your help! |
|
Today, 10:44 AM | #10244 |
Plugin Developer
Posts: 6,659
Karma: 4600391
Join Date: Dec 2011
Location: Midwest USA
Device: Kindle Paperwhite(10th)
|
That setting line works for me--after removing the spaces I assumed were added by MR.
I suspect you have another exclude_notes line somewhere else in personal.ini that's taking precedence. |
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 |