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 09-26-2025, 12:09 PM   #11296
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,208
Karma: 5006097
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
Quote:
Originally Posted by DevilsReject97 View Post
I wanted to see if you were still thinking about this? Or even an option to check box to keep them? Can't speak for others but I think it would be a huge help.
Already added to test version last month. (There hasn't been a new release since then.)

Quote:
Originally Posted by JimmXinu View Post
When continue_on_chapter_error was added, the use case was for old SB/SV story threads with manually crafted ToC posts that sometimes contained errors.

Today, we're seeing more and more sites that appear to start blocking after some unknown access limit is exceeded.

continue_on_chapter_error is helpful in those cases because you don't discard however many chapters did download before getting blocked. But I suspect that continuing to try each subsequent chapter after blocking starts will increase your blocked time--that's how I implemented it back in the day.

I propose to add a second setting: continue_on_chapter_error_try_limit.

FFF, (with continue_on_chapter_error:true), would record each chapter error and continue to the next chapter, but after continue_on_chapter_error_try_limit failures, would give up and mark all subsequent chapters 'ERROR' without trying to download them.

I'm thinking an appropriate default would be continue_on_chapter_error_try_limit:5

Some details:
  • Why not just leave out the failed / not-tried chapters?
    Because users won't immediately notice missing chapters--I did exactly that while testing that very thing.
  • What happens with updates?
    That's the real power of continue_on_chapter_error in this case; FFF will discard the ERROR message chapters and attempt to download them as if they were newly added. (Including be marked (new) if mark_new_chapters:true.)
    You could, for example, update a story with 1000 chapters once a day and if you get 100 or 200 chapters each time, have the whole thing in a week or so. Previously, we've instructed users to basically do that manually with chapter ranges.
  • What about the original use case? What if there are actually that many bad URLs? How can you ever get the chapters after those?
    You'd need to increase continue_on_chapter_error_try_limit for that story, or use ignore_chapter_url_list.
  • The ERROR chapter title would be the same, but ERROR chapter text for chapters after continue_on_chapter_error_try_limit would have different explanatory text.
  • 'Skipping subsequent chapters without trying' does not apply to later chapters that were already in the epub. Those will still be used.

Opinions?
Quote:
Originally Posted by JimmXinu View Post
New Test Version Posted

2025-08-28
- Add continue_on_chapter_error_try_limit setting (default:5) See this post.
JimmXinu is online now   Reply With Quote
Old 09-27-2025, 01:23 AM   #11297
MidnightRose
Member
MidnightRose began at the beginning.
 
Posts: 16
Karma: 10
Join Date: Feb 2025
Device: Kindle Colorsoft
I have no idea why, but this specific webnovel is producing a file that Calibre seems unable to parse.

https://www.royalroad.com/fiction/10...f-gold-digging

Trying to do any kind of conversion or using calibre's internal book editor gives this error:
Code:
calibre, version 8.11.0
ERROR: Failed to open book: Failed to open book, click "Show details" for more information.

Traceback (most recent call last):
  File "calibre\gui2\tweak_book\job.py", line 33, in run
  File "calibre\gui2\tweak_book\boss.py", line 101, in get_container
  File "calibre\ebooks\oeb\polish\container.py", line 1639, in get_container
  File "calibre\ebooks\oeb\polish\container.py", line 1232, in __init__
  File "calibre\ebooks\oeb\polish\container.py", line 279, in __init__
  File "calibre\ebooks\oeb\polish\container.py", line 282, in refresh_mime_map
  File "calibre\ebooks\oeb\polish\container.py", line 544, in opf_xpath
  File "calibre\ebooks\oeb\polish\container.py", line 649, in opf
  File "calibre\ebooks\oeb\polish\container.py", line 632, in parsed
  File "calibre\ebooks\oeb\polish\container.py", line 603, in parse
  File "calibre\ebooks\oeb\polish\container.py", line 179, in parse_xml
  File "calibre\utils\xml_parse.py", line 26, in safe_xml_fromstring
  File "src/lxml/etree.pyx", line 3428, in lxml.etree.fromstring
  File "src/lxml/parser.pxi", line 2059, in lxml.etree._parseMemoryDocument
  File "src/lxml/parser.pxi", line 1914, in lxml.etree._parseDoc
  File "src/lxml/parser.pxi", line 1930, in lxml.etree._parseDoc_unicode
  File "src/lxml/parser.pxi", line 1133, in lxml.etree._BaseParser._parseUnicodeDoc
  File "src/lxml/parser.pxi", line 647, in lxml.etree._ParserContext._handleParseResultDoc
  File "src/lxml/parser.pxi", line 765, in lxml.etree._handleParseResult
  File "src/lxml/parser.pxi", line 689, in lxml.etree._raiseParseError
  File "<string>", line 6
lxml.etree.XMLSyntaxError: internal error, line 6, column 3040
Meanwhile when I take the internal EPUB file and stick it into kindle previewer, it's able to open the file just fine.

Could it be the emoji in the description?
MidnightRose is offline   Reply With Quote
Advert
Old 09-27-2025, 01:37 AM   #11298
MidnightRose
Member
MidnightRose began at the beginning.
 
Posts: 16
Karma: 10
Join Date: Feb 2025
Device: Kindle Colorsoft
After some experimentation, it is indeed the emoji in the description.
I tried downloading and importing the same book using WebToEpub, it imported fine, and could convert to other formats as well as edit using the epub editor.
Then if I update the metadata using FFF, it breaks again, but if I then remove just the emoji, it works fine again.
Perhaps an option to strip those out?
MidnightRose is offline   Reply With Quote
Old 09-27-2025, 01:41 AM   #11299
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,821
Karma: 28586150
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Just update calibre to 8.11.1
kovidgoyal is offline   Reply With Quote
Old 09-27-2025, 10:55 AM   #11300
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,208
Karma: 5006097
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
Quote:
Originally Posted by MidnightRose View Post
After some experimentation, it is indeed the emoji in the description.
I tried downloading and importing the same book using WebToEpub, it imported fine, and could convert to other formats as well as edit using the epub editor.
Then if I update the metadata using FFF, it breaks again, but if I then remove just the emoji, it works fine again.
Perhaps an option to strip those out?
Quote:
Originally Posted by kovidgoyal View Post
Just update calibre to 8.11.1
Confirmed--Calibre 8.11.1 works and 8.11.0 doesn't.
JimmXinu is online now   Reply With Quote
Advert
Old 09-27-2025, 07:38 PM   #11301
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,438
Karma: 81367635
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
Jim: Anything in this change that might affect retrieval of collections?
https://archiveofourown.org/admin_posts/33031
ownedbycats is offline   Reply With Quote
Old 09-27-2025, 09:35 PM   #11302
chrisric
Member
chrisric began at the beginning.
 
chrisric's Avatar
 
Posts: 23
Karma: 10
Join Date: Jan 2020
Device: iPhone/Voice Dream Reader
Auto "Add New Book"

Is there a way to have FFF automatically use "Add New Book" for a novel that gets the
"Existing epub contains xxx chapters, web site only has yyy." message? Setting this at the
site level would be good. Per novel would be better but I think that would be a lot of work.

Why not just overwrite? Because the existing version may have chapters I haven't read yet.

Yes, I end up with multiple versions of the same novel.

Am I missing a better process for this kind of issue?

Thanks.

-Chris
chrisric is offline   Reply With Quote
Old 09-27-2025, 10:15 PM   #11303
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,208
Karma: 5006097
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
Quote:
Originally Posted by ownedbycats View Post
Jim: Anything in this change that might affect retrieval of collections?
https://archiveofourown.org/admin_posts/33031
Not that I'm aware of. But then I don't pay much attention to AO3 collections.

If you have stories that you know use collections perhaps you could try them?
Quote:
Originally Posted by chrisric View Post
Is there a way to have FFF automatically use "Add New Book" for a novel that gets the
"Existing epub contains xxx chapters, web site only has yyy." message? Setting this at the
site level would be good. Per novel would be better but I think that would be a lot of work.

Why not just overwrite? Because the existing version may have chapters I haven't read yet.

Yes, I end up with multiple versions of the same novel.

Am I missing a better process for this kind of issue?
When you ask for it be settable on per story basis, that sounds like some individual author is abusing chapters. I'm not a big fan of adding features to address individual authors.

Update mode is not settable by site or story. It's something the user can change on each download 'job', and can choose a default for.

Is this something other users would find valuable? I assume, from use pattern, that +99.9% you want the same setting. I'm honestly not sure how hard it would be to do.

As a work around:
  1. Use a custom column to set FFF error to, say #fanficfare_error,
  2. When you bump into one, search for #fanficfare_error:"Existing epub contains", make a saved search if you need it a lot,
  3. FFF > Get story URLs from selected books (I have a hotkey for that),
  4. The dialog has a copy to clipboard button, click it, ESC to close,
  5. FFF > Actions by Update Mode > Download from URLs > Add New Book (set another hotkey to speed it up), hit Enter.
JimmXinu is online now   Reply With Quote
Old 09-28-2025, 02:05 AM   #11304
LittleBit
Junior Member
LittleBit began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Aug 2025
Device: Kindle
Quote:
Originally Posted by JimmXinu View Post
open_pages_in_browser_tries_limit is a recently added feature to keep from retrying forever. If you're using Chrome, you may need the latest test version--there was a change to caching.
Thanks! The test version did fix that problem.

So, I've been trying to simplify/automate a few things recently, but I'm stuck on this one. I have a Kindle that I'm using KOreader on and I have it set up to add to folders by fandom. Which is fine until I have crossovers and it generates a bunch of folders with like, 1 story in them. I want Calibre to have both fandoms listed but not use that column to send to KOreader. Is there a way to separate the fandoms into different columns, i.e 'MHA, Harry Potter' would into go into something like #fandom1 and #fandom2 columns, and I can just send #fandom1 to Koreader? Or have a second column that has all the single fandoms with crossovers converted to just a Crossover tag that would make a single folder in KOreader?
LittleBit is offline   Reply With Quote
Old 09-28-2025, 11:10 AM   #11305
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,208
Karma: 5006097
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
Quote:
Originally Posted by LittleBit View Post
So, I've been trying to simplify/automate a few things recently, but I'm stuck on this one. I have a Kindle that I'm using KOreader on and I have it set up to add to folders by fandom. Which is fine until I have crossovers and it generates a bunch of folders with like, 1 story in them.
As a fellow KOReader user (on Kobo), I do it a different way: KOReader has a 'Calibre metadata search' feature you can use if you have a Calibre metadata.calibre file available. That works well for me because I put category(fandom) and genre in Calibre's Tags.

Whether you do or not have that available depends how you're getting your books onto the device.

(I just dump all my Calibre books(6700+) into one directory on the device. I used {id} to name them, but I'd use {uuid} if I did it again from scratch.)

Quote:
Originally Posted by LittleBit View Post
I want Calibre to have both fandoms listed but not use that column to send to KOreader. Is there a way to separate the fandoms into different columns, i.e 'MHA, Harry Potter' would into go into something like #fandom1 and #fandom2 columns, and I can just send #fandom1 to Koreader?
Yes, but it's complicated and depending on the site (coughAO3cough), one story can have hundreds of fandoms.

Quote:
Originally Posted by LittleBit View Post
Or have a second column that has all the single fandoms with crossovers converted to just a Crossover tag that would make a single folder in KOreader?
That would be easier. I'd suggest doing it as a Calibre Custom column instead of doing it in FFF. That way if you manually change the value in your multi-fandom column for a story, the single fandom column will update appropriately.
JimmXinu is online now   Reply With Quote
Old 10-01-2025, 10:55 AM   #11306
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,208
Karma: 5006097
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
New Version Released

Version 4.49.0 - 2025-10-01
- adapter_storiesonlinenet: Change page not found error reporting
- adapter_literotica: Yet another site change, addresses #1245
- base_otw: Add collectionsUrl and collectionsHTML metadata
- adapter_literotica: Site change
- browsercache_simple: Code for 0 length stream in cache file, only seen in Mac
- Add continue_on_chapter_error_try_limit setting
- adapter_fireflyfansnet: Allow for missing authorId.
JimmXinu is online now   Reply With Quote
Old 10-01-2025, 02:01 PM   #11307
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,208
Karma: 5006097
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
New Test Version Posted

2025-10-01
- Spiritfanfiction login, closes #1247, thanks kilandra
- New site: althistory.com (NOT alternatehistory.com) for #1252

Note that alternatehistory.com and althistory.com, while both xenforo forum sites, are unrelated.

FYI, althistory.com is very aggressive about their captchas. I needed to have logged in recently, solving a captcha several times (or with several steps?) before trying to download with login. I wouldn't be surprised if FFF login failed a lot.
JimmXinu is online now   Reply With Quote
Old 10-01-2025, 05:07 PM   #11308
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,438
Karma: 81367635
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
Is the chapter range documented anywhere in docs? I sometimes forget how to use it and searching forum thread is slow.

EDIT: Doesn't seem to be. Any objections if I add to FAQ?

Last edited by ownedbycats; 10-01-2025 at 05:21 PM.
ownedbycats is offline   Reply With Quote
Old 10-01-2025, 06:44 PM   #11309
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,438
Karma: 81367635
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
Random feature request that I don't know if possible: An option in personal.ini editor to open second window with defaults.ini. Make easier to look up things.
ownedbycats is offline   Reply With Quote
Old 10-01-2025, 06:44 PM   #11310
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,208
Karma: 5006097
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
Go ahead.

It's in the tooltip for the URL box, but that one says [1,2] and I usually use [1-2]. Both work.
JimmXinu is online now   Reply With Quote
Reply

Tags
fanfiction


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[GUI Plugin] KindleUnpack - The Plugin DiapDealer Plugins 527 08-15-2025 02:36 PM
[GUI Plugin] Open With kiwidude Plugins 404 02-21-2025 06:42 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


All times are GMT -4. The time now is 06:34 PM.


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