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-31-2023, 05:50 AM   #8761
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: 31,573
Karma: 62544528
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   #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: 11,634
Karma: 81412473
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   #8763
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: 139
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   #8764
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: 71
Karma: 582370
Join Date: Apr 2023
Device: Kobo Clara 2E, Pocketbook Inkpad 4
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   #8765
chicleeblair
Connoisseur
chicleeblair began at the beginning.
 
Posts: 97
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
Advert
Old 08-02-2023, 12:37 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: 139
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   #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: 71
Karma: 582370
Join Date: Apr 2023
Device: Kobo Clara 2E, Pocketbook Inkpad 4
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   #8768
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: 139
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   #8769
chicleeblair
Connoisseur
chicleeblair began at the beginning.
 
Posts: 97
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   #8770
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: 11,634
Karma: 81412473
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   #8771
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: 7,329
Karma: 5007213
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
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   #8772
chicleeblair
Connoisseur
chicleeblair began at the beginning.
 
Posts: 97
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
Old 08-05-2023, 10:31 PM   #8773
chicleeblair
Connoisseur
chicleeblair began at the beginning.
 
Posts: 97
Karma: 10
Join Date: Sep 2018
Device: iPad mini
I got it working. I think the difference was using ships_CHARS? But I was already kind of thrown this morning because only a percent of what I set to update last night did, because I accidentally told it not to update if no new chapters.

For ten year old pics

It was 2:30am, what can I say?
chicleeblair is offline   Reply With Quote
Old 08-06-2023, 09:25 AM   #8774
AuroraSulphur
Junior Member
AuroraSulphur began at the beginning.
 
Posts: 1
Karma: 10
Join Date: Aug 2023
Device: Windows 10
Quote:
Originally Posted by poodz View Post
Ah, I see - gotcha. I was trying to pull from an entire page of bookmarks, where the bookmarked date is visible. I believe when the work is deleted on ao3, your tags, notes, and bookmark date still remain (ref: https://imgur.com/a/FhBGtwd). If that's the case, I'll probably just go thru and manually add dates, thank you!
Hello! I've only recently started using Calibre and FanFicFare and I am blown away by how amazing it is! Like the person above, I've been pulling in works from my AO3 account, but I've been doing it from My History instead of My Bookmarks. On the My History view, it displays the date I last visited the story, whether it's been updated since then, and how many times I've visited it. As far as I know, this information only appears in this view.

I was wondering if there is a way to get FFF to pull that information in when I download the work to Calibre? I'm assuming based on your response to the person above that there is not this capability natively. However, I was wondering if there is a way to specifically add in a way to pull this information in my personal.ini?

I ask because I currently use a javascript bookmarklet by Flamebyrd to periodically download my history, and that one is able to find/call/pull (idk the terminology) these three data points. So I was kind of hoping there was a method I could use to tell FFF to look for/pull in that information, using the javascript code somehow in my personal.ini.

I took two semesters of coding in undergrad, and I basically only know enough to get myself in trouble. I understand this might be too hellishly complex to even attempt, but given this appears to be an incredibly niche desire on my part, I figured it was worth a shot to ask. Again, thanks so much for all of your work on this, and to the community in this thread!! I've learned so much already.
AuroraSulphur is offline   Reply With Quote
Old 08-06-2023, 11:56 AM   #8775
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: 7,329
Karma: 5007213
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
Quote:
Originally Posted by AuroraSulphur View Post
On the My History view, it displays the date I last visited the story, whether it's been updated since then, and how many times I've visited it. As far as I know, this information only appears in this view.
I would point out that info is only really useful if you are doing all your reading on the site.

Since FFF is specifically a tool to take your reading off line, that info will not be interesting or useful to anyone who's been using FFF for a while, doing their reading from downloaded ebooks.
JimmXinu is offline   Reply With Quote
Reply

Tags
fanfiction


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[GUI Plugin] Open With kiwidude Plugins 405 02-09-2026 07:54 AM
[GUI Plugin] KindleUnpack - The Plugin DiapDealer Plugins 529 01-28-2026 10:32 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 01:49 PM.


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