Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Plugins

Notices

Reply
 
Thread Tools Search this Thread
Old 07-29-2023, 09:53 PM   #8761
tectonictigress
Junior Member
tectonictigress began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Oct 2020
Device: none
I've used this plug in for several years, used to just download from fanfiction.net but switched to AO3 a few years back so haven't tried to download from fanfiction.net recently, tried today and am getting this error:

HTTP Error in FFF '403 Client Error: Forbidden for url

I tried following the steps for the BrowserCacheFeature, and updated my personal.ini to have this (with Username in the path being my actual username):

Quote:
[defaults]

is_adult:true
browser_cache_path:C:\Users\Username\AppData\Local \Google\Chrome\User Data\Profile 1\Cache\Cache_Data

[epub]

[fanfiction.net]
use_browser_cache:true
I hit ok, and can click on "edit personal.ini" again and see my changes still - however if I close out the configure window and re-open it, those changes are gone when I re-open the "edit persona.ini"

It's been awhile since I've messed with editing personal.ini, is there a save button or something I'm missing?
tectonictigress is offline   Reply With Quote
Old 07-30-2023, 11:17 AM   #8762
ownedbycats
Custom User Title
ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.
 
ownedbycats's Avatar
 
Posts: 10,669
Karma: 74166147
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
You need to press "OK" in both the personal.ini editor and the Customize FanficFare window to save, I believe.

Hopefully not the case here, but:
personal.ini contents are saved in the library database. If you've been having any other issues with books going missing or metadata not changing as expected, this may indicate the DB is glitching out. Common causes of this are putting it on a NAS or inside cloud storage (Dropbox, GDrive, etc). SQLite databases do not like this, so keep your library on either a local drive or an external (non-networked) one.

I also recommend use_browser_cache_only:true alongside ]use_browser_cache. This prevents it from falliing back and will give you a better idea of whether the cache is actually failing or not (though the errors can be a bit tricky to read).

Last edited by ownedbycats; 07-30-2023 at 11:36 AM.
ownedbycats is offline   Reply With Quote
Advert
Old 07-31-2023, 12:22 AM   #8763
chicleeblair
Connoisseur
chicleeblair began at the beginning.
 
Posts: 92
Karma: 10
Join Date: Sep 2018
Device: iPad mini
When you install the test version does it automatically override your current plug-in, or do I need to enable it and change my toolbar? I just added it today, and when I went to change some stuff I didn’t see any new options, but I might not have been looking in the right place or I might have been using the old version.

Secondly, as sure as I am that this would be complicated, is it possible to use generate cover and personal.ini to specify which generate cover gets used for a specific category or even ship? I hate blank covers; the last time I did a major overhaul on my fanfic s was adding covers a few years ago. While I’ve been cleaning my library I find them but always in situations when there’s no chance to mark them. Occasionally they are truly blank which makes them easy enough to find and fix, but sometimes they’re from being download it on other EPUB sites whenever this plug-in wasn’t playing nicely with Ff.net and I didn’t know the caches stuff.
chicleeblair is offline   Reply With Quote
Old 07-31-2023, 05:50 AM   #8764
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 30,897
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Test versions are just the plugin posted not in the first post,
OTOH
Post 1 gets scraped and a periodic notification appears on the status bar for those.
Installation for Test versions is Manual (Via Preferences:Plugins)
Most reversion (rollback to the main stream) is simply done by installing that over the previous install
BUT Always read instructions posed with the plugin. In rare cases of when one went really sideways, you may need to do more (remove settings or cruft)
theducks is offline   Reply With Quote
Old 07-31-2023, 11:14 AM   #8765
ownedbycats
Custom User Title
ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.
 
ownedbycats's Avatar
 
Posts: 10,669
Karma: 74166147
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
Test versions will just drop in over the old version. I've occasionally had the installation go wrong though (damned gremlins), just try again and hopefully it'll work.

Quote:
Originally Posted by chicleeblair View Post
Secondly, as sure as I am that this would be complicated, is it possible to use generate cover and personal.ini to specify which generate cover gets used for a specific category or even ship?
Yes, that's possible. It's pretty customizable too if you know regex - I was experimenting with switching to a profile with smaller text if the title was 'too long', but ended up not doing it for some reason.

Code:
## If you have the Generate Cover plugin installed, you can use the
## generate_cover_settings parameter to intelligently decide which GC
## setting to run.  There are three parts 1) a template of which
## metadata part(s) to look at, 2) a regular expression to match the
## template, and 3) the name of the GC setting to use, which must
## match exactly.  Use this parameter in [defaults], or by site eg,
## [ficwad.com]
## Make sure to keep at least one space at the start of each line and
## to escape % to %%, if used.
## template => regexp to match => GC Setting to use.
## To use this, make sure you go to the Generate Cover tab in FanFicFare
## config and check 'Allow generate_cover_settings from personal.ini
## to override'
## You can check for an existing cover image in the metadata
## cover_image.  cover_image can be:
## specific -- The site has an image that is specifically this story's cover
## first -- The first image in the story or story desc is used as cover
## default -- A default_cover_image was used
## force -- A force_cover_image was used
## old -- There was already a cover image in the epub.
## This is useful because GC plugin can use the existing image.
#generate_cover_settings:
# ${category} => Buffy:? [tT]he Vampire Slayer => BuffyCover
# ${category} => Star Trek => StarTrekCover
# ${cover_image} => ^$ => CompleteCover
# ${cover_image} => (specific|first|default|force) => CoverWithOrigImage

Last edited by ownedbycats; 07-31-2023 at 11:17 AM.
ownedbycats is offline   Reply With Quote
Advert
Old 08-01-2023, 05:49 AM   #8766
culytera
Zealot
culytera ought to be getting tired of karma fortunes by now.culytera ought to be getting tired of karma fortunes by now.culytera ought to be getting tired of karma fortunes by now.culytera ought to be getting tired of karma fortunes by now.culytera ought to be getting tired of karma fortunes by now.culytera ought to be getting tired of karma fortunes by now.culytera ought to be getting tired of karma fortunes by now.culytera ought to be getting tired of karma fortunes by now.culytera ought to be getting tired of karma fortunes by now.culytera ought to be getting tired of karma fortunes by now.culytera ought to be getting tired of karma fortunes by now.
 
Posts: 124
Karma: 295674
Join Date: Jul 2021
Device: iPhone
Does mark_new_chapters:true/false/latestonly only work when the Update Mode/if Story Exists option is "Update EPUB if New Chapters"? I always had it set to Overwrite Always when updating existing EPUBs because I also want to update the title page and the cover page which is just automatically generated from the title page.
culytera is offline   Reply With Quote
Old 08-01-2023, 01:10 PM   #8767
Ghostcat
Connoisseur
Ghostcat ought to be getting tired of karma fortunes by now.Ghostcat ought to be getting tired of karma fortunes by now.Ghostcat ought to be getting tired of karma fortunes by now.Ghostcat ought to be getting tired of karma fortunes by now.Ghostcat ought to be getting tired of karma fortunes by now.Ghostcat ought to be getting tired of karma fortunes by now.Ghostcat ought to be getting tired of karma fortunes by now.Ghostcat ought to be getting tired of karma fortunes by now.Ghostcat ought to be getting tired of karma fortunes by now.Ghostcat ought to be getting tired of karma fortunes by now.Ghostcat ought to be getting tired of karma fortunes by now.
 
Posts: 61
Karma: 582370
Join Date: Apr 2023
Device: Kobo Clara 2E
I am trying to add a new item to a list. So that if I have a (ao3) ship of the form ['Hermione Granger/Harry Potter/Ginny Weasley'] I end up with ['Harry/Hermione.Ginny', 'Triad']

Code:
ships=>(.+) .+\/Harry Potter\/(.+) .+=>Harry/\1.\2
correctly results in ['Harry/Hermione.Ginny']. However, if I add \,Triad on the end (as specified on the "Replace Metadata" web page. I don't get the ship tag or the "Triad" tag.

IE
Code:
ships=>(.+) .+\/Harry Potter\/(.+) .+=>Harry/\1.\2\,Triad
results in the empty list.

I know I am missing something obvious but I blowed I can see what it is.
Ghostcat is offline   Reply With Quote
Old 08-01-2023, 11:50 PM   #8768
chicleeblair
Connoisseur
chicleeblair began at the beginning.
 
Posts: 92
Karma: 10
Join Date: Sep 2018
Device: iPad mini
Ownedbycats

THANK YOU!

I’m stoked! I finished doing all my specific fandom tag parring, so next is clean-up time and then fun stuff like covers and title pages to keep things neat! (Without having taken all the names/ships out yet—to be readied with prefixes—I’m at ~1000. I kept more specific to ASOIAF and HP than I anticipated, but ~300 of those are for fandoms, episodes, books, seasons, and fusions, so I’m good.)
chicleeblair is offline   Reply With Quote
Old 08-02-2023, 12:37 AM   #8769
culytera
Zealot
culytera ought to be getting tired of karma fortunes by now.culytera ought to be getting tired of karma fortunes by now.culytera ought to be getting tired of karma fortunes by now.culytera ought to be getting tired of karma fortunes by now.culytera ought to be getting tired of karma fortunes by now.culytera ought to be getting tired of karma fortunes by now.culytera ought to be getting tired of karma fortunes by now.culytera ought to be getting tired of karma fortunes by now.culytera ought to be getting tired of karma fortunes by now.culytera ought to be getting tired of karma fortunes by now.culytera ought to be getting tired of karma fortunes by now.
 
Posts: 124
Karma: 295674
Join Date: Jul 2021
Device: iPhone
Quote:
Originally Posted by Ghostcat View Post
I am trying to add a new item to a list. So that if I have a (ao3) ship of the form ['Hermione Granger/Harry Potter/Ginny Weasley'] I end up with ['Harry/Hermione.Ginny', 'Triad']

Code:
ships=>(.+) .+\/Harry Potter\/(.+) .+=>Harry/\1.\2
correctly results in ['Harry/Hermione.Ginny']. However, if I add \,Triad on the end (as specified on the "Replace Metadata" web page. I don't get the ship tag or the "Triad" tag.

IE
Code:
ships=>(.+) .+\/Harry Potter\/(.+) .+=>Harry/\1.\2\,Triad
results in the empty list.

I know I am missing something obvious but I blowed I can see what it is.
It seems you just need to remove the backslash before ,
Code:
ships,ships_all=>(.+) .+\/Harry Potter\/(.+) .+=>Harry/\1.\2, Triad
- No backslash
- With backslash
culytera is offline   Reply With Quote
Old 08-02-2023, 01:43 AM   #8770
Ghostcat
Connoisseur
Ghostcat ought to be getting tired of karma fortunes by now.Ghostcat ought to be getting tired of karma fortunes by now.Ghostcat ought to be getting tired of karma fortunes by now.Ghostcat ought to be getting tired of karma fortunes by now.Ghostcat ought to be getting tired of karma fortunes by now.Ghostcat ought to be getting tired of karma fortunes by now.Ghostcat ought to be getting tired of karma fortunes by now.Ghostcat ought to be getting tired of karma fortunes by now.Ghostcat ought to be getting tired of karma fortunes by now.Ghostcat ought to be getting tired of karma fortunes by now.Ghostcat ought to be getting tired of karma fortunes by now.
 
Posts: 61
Karma: 582370
Join Date: Apr 2023
Device: Kobo Clara 2E
Quote:
Originally Posted by culytera View Post
It seems you just need to remove the backslash before ,
Code:
ships,ships_all=>(.+) .+\/Harry Potter\/(.+) .+=>Harry/\1.\2, Triad
- No backslash
- With backslash
Removing the backslash does result in ['Harry/Hermione.Ginny,Triad'] but this a single tag. Not the two tags that I am aiming for.
Ghostcat is offline   Reply With Quote
Old 08-02-2023, 05:03 AM   #8771
culytera
Zealot
culytera ought to be getting tired of karma fortunes by now.culytera ought to be getting tired of karma fortunes by now.culytera ought to be getting tired of karma fortunes by now.culytera ought to be getting tired of karma fortunes by now.culytera ought to be getting tired of karma fortunes by now.culytera ought to be getting tired of karma fortunes by now.culytera ought to be getting tired of karma fortunes by now.culytera ought to be getting tired of karma fortunes by now.culytera ought to be getting tired of karma fortunes by now.culytera ought to be getting tired of karma fortunes by now.culytera ought to be getting tired of karma fortunes by now.
 
Posts: 124
Karma: 295674
Join Date: Jul 2021
Device: iPhone
Quote:
Originally Posted by Ghostcat View Post
Removing the backslash does result in ['Harry/Hermione.Ginny,Triad'] but this a single tag. Not the two tags that I am aiming for.
Idk why it's like that for you, but they're separate tags for me, space or no space after the comma. I can select either tag on the browser.
culytera is offline   Reply With Quote
Old 08-05-2023, 11:40 AM   #8772
chicleeblair
Connoisseur
chicleeblair began at the beginning.
 
Posts: 92
Karma: 10
Join Date: Sep 2018
Device: iPad mini
Really thought I had this figured out, but as per usual fanfictionnet is throwing in wrenches. I’m trying to standardize character names, and I’d like it them to be defaults. So ff.net uses Draco M., some Ao3 is Draco. For characters I had that working like this:

Quote:
characters,ships_CHARS,ships=>^(.*(Draco|Draco M\.)/s.*)$=>Draco Malfoy
, works on characters but does absolutely nothing on ships

I've used (|) in the past for stuff like this, but for some reason that didn’t’t work either

Last edited by chicleeblair; 08-05-2023 at 06:01 PM.
chicleeblair is offline   Reply With Quote
Old 08-05-2023, 02:22 PM   #8773
ownedbycats
Custom User Title
ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.
 
ownedbycats's Avatar
 
Posts: 10,669
Karma: 74166147
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
I'm not sure if it'll help in your situation, but you can put site-specific replaces under the site section.

Code:
[www.fanfiction.net]
add_to_replace_metadata:
# Characters
 characters=>^Garrus V\.=>Garrus Vakarian
 characters=>Tali'Zorah=>Tali'Zorah nar Rayya
 characters=>^Martin S\.=>Martin Septim

## ffnet's Mass Effect section screwed up when trying to merge the two Shepards. May need occasional storyUrl override.
 characters=>^J. Garson$=>Female Shepard
 characters=>^Shepard$=>Male Shepard
My thinking is that this would allow you to split apart the regexes to two simpler (and hopefully less breakable) ones.

Addendeum: One neat thing is that while you can only have one conditional, the siteUrl section itself kind of counts as a free &&publisher==FanFiction.net conditional.
ownedbycats is offline   Reply With Quote
Old 08-05-2023, 05:53 PM   #8774
JimmXinu
Plugin Developer
JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.
 
JimmXinu's Avatar
 
Posts: 6,840
Karma: 4604429
Join Date: Dec 2011
Location: Midwest USA
Device: Kindle Paperwhite(10th)
New Test Version Posted

2023-08-05
- base_efiction: .string -> stripHTML for nested tags Closes #984
JimmXinu is offline   Reply With Quote
Old 08-05-2023, 06:00 PM   #8775
chicleeblair
Connoisseur
chicleeblair began at the beginning.
 
Posts: 92
Karma: 10
Join Date: Sep 2018
Device: iPad mini
Yeah, but I was A. Hoping to avoid site-specifics, and B suing the test story with FF.Net naming so I’m super confused. Thanlks though! I’ll see if your code gives me insight, maybe I just typed something weird
chicleeblair is offline   Reply With Quote
Reply

Tags
fanfiction


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[GUI Plugin] KindleUnpack - The Plugin DiapDealer Plugins 514 03-23-2025 10:26 AM
[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


All times are GMT -4. The time now is 08:55 AM.


MobileRead.com is a privately owned, operated and funded community.