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 12-24-2023, 04:42 AM   #9151
DemiGraceling
Junior Member
DemiGraceling began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Jun 2022
Device: iPhone
Normalizing Ships

I am trying to make it so all of the ships have the same formate.
I want:
CharacterA/CharacterB
CharacterA & CharacterB
I have added Lines:
ships=> /=>/
ships=>/ =>/
to remove any spaces on either side of the / but I don't know if there is a way to make sure there is a space on either side of the &.
DemiGraceling is offline   Reply With Quote
Old 12-24-2023, 10:05 AM   #9152
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,988
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
Quote:
Originally Posted by DemiGraceling View Post
I am trying to make it so all of the ships have the same formate.
I want:
CharacterA/CharacterB
CharacterA & CharacterB
I have added Lines:
ships=> /=>/
ships=>/ =>/
to remove any spaces on either side of the / but I don't know if there is a way to make sure there is a space on either side of the &.
Try this:
Code:
## You can use \s in the replacement to add explicit spaces.  (The config parser
## tends to discard trailing spaces.)
# ...
 ships=>[ ]*/[ ]*=>/
 ships=>[ ]*&[ ]*=>\s&\s
JimmXinu is offline   Reply With Quote
Advert
Old 12-26-2023, 10:11 AM   #9153
David93
Junior Member
David93 began at the beginning.
 
Posts: 1
Karma: 10
Join Date: Dec 2023
Device: none
Multiple links for individual books

Hello
First of all, FanFicFare is a great plugin, but how can I download multiple links from individual books?
I enter a link and it searches for all available individual books, but it is also possible to enter several links which then search for the individual books. If this is not possible, you could add this function.
I hope I explained it reasonably well.

Thanks
David93 is offline   Reply With Quote
Old 12-26-2023, 12:19 PM   #9154
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,988
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
Quote:
Originally Posted by David93 View Post
First of all, FanFicFare is a great plugin, but how can I download multiple links from individual books?
I enter a link and it searches for all available individual books, but it is also possible to enter several links which then search for the individual books. If this is not possible, you could add this function.
If you are asking for the ability to use the "Get Story URLs from Web Page" feature on multiple pages at once, no, FFF can't do that.

I'm not interested in adding that ability because I'm afraid it would lead to "too many" downloads at a time. That can cause problems for you, for the site servers, and for everyone if the site then decides to start blocking more aggressively.

What "too many" means isn't precisely defined, but you can look at what we have to do to use FFF with fanfiction net now to see an example of what can happen when the site starts blocking aggressively.
JimmXinu is offline   Reply With Quote
Old 12-26-2023, 03:49 PM   #9155
Mieeka
Member
Mieeka began at the beginning.
 
Posts: 23
Karma: 10
Join Date: Aug 2012
Device: Iphone
Hi Jimm, Merry Christmas.

When using "get stories from URL" on my Ao3 bookmark page, and I have a story bookmarked, which is in an anthology it pins the anthology for update. However, if I have a series bookmark - It ignores it completely.

Any chance of pinned "series" bookmarks as well instead of completely ignoring them as its currently doing?
Mieeka is offline   Reply With Quote
Advert
Old 12-26-2023, 05:27 PM   #9156
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,988
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
Not really.

FFF knows how to identify story URLs, but series URLs aren't as integral to the program.
JimmXinu is offline   Reply With Quote
Old 12-30-2023, 06:06 PM   #9157
John Maverick
Connoisseur
John Maverick began at the beginning.
 
Posts: 61
Karma: 10
Join Date: Oct 2018
Device: none
FFF fails when updating a particular fic of ff.net

I have no problem downloading or updating fics from ff.net, except with only one.

When trying to update this particular fic from ff.net FFF fails and give the following error:

Quote:
Estado
Título
Autor
Comentario
URL
Error
Back to Basics
ayushi
not well-formed (invalid token): line 1, column 1022
https://www.fanfiction.net/s/14260077/1/Back-to-Basics
The strange thing is that I was able download the first chapter the first time when I recived an email notification. And also updated if when the following chapters 2, 3, 4, and 5 were posted.
But since the chapter 6 were posted in 17/11/2023, the error stated to happening when trying to update the fic. So, maybe there is something in the chapter 6 of that fic that is messing with FFF?

My setup is the following:
OS: Linux Mint 21.2 x86_64
Calibre version: 7.2
FanFicFare version: v4.30.0
FlareSolverr version: 3.3.12

Like always thanks in advance.

Last edited by John Maverick; 12-30-2023 at 06:18 PM.
John Maverick is offline   Reply With Quote
Old 12-30-2023, 06:23 PM   #9158
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,025
Karma: 75555555
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
I would test by putting https://www.fanfiction.net/s/14260077/1/[1-5] in Download from URL and downloading as new story. This only downloads the first five chapters, so if it doesn't error, that'll indicate a problem with chapter 6.

Last edited by ownedbycats; 12-30-2023 at 06:26 PM.
ownedbycats is offline   Reply With Quote
Old 12-30-2023, 06:28 PM   #9159
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,988
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
I'm not seeing this happen using either Browser Cache or Flaresolverr.

I'm using:
OS: Win10
Calibre: 7.2
FFF: v4.30.1
Flaresolverr: 3.3.12

"not well-formed (invalid token)" appears to be an XML parser error, judging by google returns.

Are you using a vendored version of Calibre (IE, from your OS) or the official version?

Have you put a website_encodings setting in personal.ini?

I'd also try setting continue_on_chapter_error:true
JimmXinu is offline   Reply With Quote
Old 12-30-2023, 07:20 PM   #9160
John Maverick
Connoisseur
John Maverick began at the beginning.
 
Posts: 61
Karma: 10
Join Date: Oct 2018
Device: none
Quote:
Originally Posted by JimmXinu View Post
Are you using a vendored version of Calibre (IE, from your OS) or the official version?
No. I'm using the official version installed with the sh script from Calibre site.
https://calibre-ebook.com/es/download_linux

Quote:
Originally Posted by JimmXinu View Post
Have you put a website_encodings setting in personal.ini?
No. I searched in my personal.ini, just in case, and didn't found any instance of that option.

Quote:
Originally Posted by JimmXinu View Post
I'd also try setting continue_on_chapter_error:true
That one was in false. I tried setting ii true for ff.net, but the same error happened.

Quote:
Originally Posted by ownedbycats View Post
I would test by putting https://www.fanfiction.net/s/14260077/1/[1-5] in Download from URL and downloading as new story. This only downloads the first five chapters, so if it doesn't error, that'll indicate a problem with chapter 6.
I tried that and surprisingly now I can't download from chapter 1 to 5, even if I have the epub with said chapters from when they were posted. The same error happens when trying to download only chapter 1.

Just in case I attached the epub of this fic to see if any can be discerned from it.

As always thanks in advance.
Attached Files
File Type: epub Back to Basics - ayushi.epub (55.3 KB, 169 views)
John Maverick is offline   Reply With Quote
Old 12-30-2023, 07:49 PM   #9161
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,988
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
I don't know where it came from, there are some bad characters in the content.opf in that epub. The error is actually coming from the code to read the existing epub for update. It's the story description which doesn't match what's on the site anyway.

I used Calibre's Edit book, then Tools > Check book to find it.

I can see the "not well-formed (invalid token)" error, too, when I attempt to update your epub. Or even Overwrite Always (since I have have include_logpage on).

I'd just delete that book and download it again fresh. That works for me.
JimmXinu is offline   Reply With Quote
Old 12-30-2023, 08:07 PM   #9162
John Maverick
Connoisseur
John Maverick began at the beginning.
 
Posts: 61
Karma: 10
Join Date: Oct 2018
Device: none
Quote:
Originally Posted by JimmXinu View Post
I don't know where it came from, there are some bad characters in the content.opf in that epub. The error is actually coming from the code to read the existing epub for update. It's the story description which doesn't match what's on the site anyway.

I used Calibre's Edit book, then Tools > Check book to find it.

I can see the "not well-formed (invalid token)" error, too, when I attempt to update your epub. Or even Overwrite Always (since I have have include_logpage on).

I'd just delete that book and download it again fresh. That works for me.
Deleting that book and downloading the fic again worked perfectly.

Again thank you JimmXinu and ownedbycats for your help
John Maverick is offline   Reply With Quote
Old 01-02-2024, 03:04 AM   #9163
MsFlutter
Member
MsFlutter began at the beginning.
 
Posts: 10
Karma: 10
Join Date: Jul 2023
Device: Android 12 phone
Is it possible to have replace metadata move a tag from 1 metakey to another?
eg. if there's a tag in FreeFormTags that says "mentioned Character A" and you want have it instead say "Background & Cameo Characters" in Characters
MsFlutter is offline   Reply With Quote
Old 01-02-2024, 11:15 AM   #9164
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,988
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
It's possible, but it's a bit involved.

There isn't a 'move' option as such, you have to copy and delete. Conceptually similar to moving files from one drive to another. Except you also want to edit it along the way.

Here's a theoretical example. I haven't tested it--I'd need a story that meets the criteria.

Code:
[archiveofourown.org]

## create a new metadata entry to edit
add_to_extra_valid_entries:,freeformchars

## copy everything in freeformtags into it.  
## NOREPL means before replace_metadata, etc
include_in_freeformchars:freeformtags.NOREPL

## copy freeformchars (after replace_metadata, etc) into characters, 
## but keep characters too
include_in_characters:characters,freeformchars

add_to_include_metadata_pre:
## include only tags from freeformchars that contain 'mentioned', 
## delete everything else
 freeformchars=~.*mentioned.*

add_to_exclude_metadata_pre:
## delete everything from characters that contains 'mentioned'.
 characters=~.*mentioned.*

add_to_replace_metadata:
## remove substring 'mentioned'
 freeformchars=>mentioned=>
## prepend Background & Cameo Characters 
 freeformchars=>^(.*)$=>Background & Cameo Characters \1
Note that, IMO, this is already broken because 'mentioned' is going to be used differently by different authors. One will use 'mentioned Victor Cachat' and another will have 'mentioned suicide ideation'.

To catch different cases like 'mentioned' vs 'Mentioned' vs 'mentions' vs 'mention:' and whether it's before or after the name would require more complex regexes and are left as an exercise for the reader. (Do text books still say that? )
JimmXinu is offline   Reply With Quote
Old 01-02-2024, 12:21 PM   #9165
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,988
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
I'm thinking I may not do the usual monthly release this time.

There was only one change that, as far as I know, affected very few stories.

Anyone have evidence that disagrees?

Quote:
Originally Posted by JimmXinu View Post
Latest Test Version
Rather than posting test versions in line, the newest test version will be in this posting, so it's always in the same place.

If there's no plugin zip here, there hasn't been a test version yet since the last release.

2023-12-16
- Another OTW(AO3) block/hidden story string

Installation instructions from Introduction to plugins:
Spoiler:

JimmXinu 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 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


All times are GMT -4. The time now is 10:33 AM.


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