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-11-2021, 08:39 PM   #6751
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,993
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
New Test Version Posted

2021-12-11
- Add remove_class_chapter feature, true by default. For Calibre convert with Base eFiction.

This doesn't necessarily solve tricklem's problem--base efiction sites epubs which were converted epub to epub are likely broken.

But it should keep it from happening again (assuming the epub has been updated by FFF since this update) and should stop it from happening for Kindle users (again, to stories updated with this version and newer).
JimmXinu is offline   Reply With Quote
Old 12-12-2021, 10:34 AM   #6752
tricklem
Connoisseur
tricklem began at the beginning.
 
tricklem's Avatar
 
Posts: 60
Karma: 10
Join Date: Feb 2015
Device: none
Quote:
Originally Posted by JimmXinu View Post
I think the problem is an interaction between Calibre's Convert and the HTML from the site.

The epub you attached is output from Calibre Convert (epub->epub?)--not FFF.

Looking at your epub, the text is there, but the chapters have all been split into more than one file inside the epub. Just next page/page down from the chapter title and the text starts in a separate file.

A bit of testing shows that is what a Calibre epub -> epub conversion does to the FFF output from starslibrary.net.

Calibre's convert settings for 'Structure detection' is looking for tags with class="chapter". Which starslibrary.net (and all Base eFiction sites ) have marking the <div> tag containing the chapter text. By default (I assume--I don't remember changing that), Calibre is adding a 'pagebreak' there, apparently implemented as a break between files. Which it puts between the chapter title and the chapter text.

Trying to update such an epub gives me "FanFicFare doesn't recognize chapters in existing epub...". Which makes sense--it doesn't match FFF's file structure anymore.

So, the answer is, unfortunately, that any FFF Base eFiction site epub you did a calibre epub->epub convert on is likely broken as far as FFF update is concerned.

The only immediate fix is 'Don't do that.' Which isn't a great answer for people who convert to azw3 for Kindle (like me).

You have to go into Calibre's Conversion, Common options, under Structure detection and change the Chapter mark setting to 'None'. That will prevent new conversions from splitting the chapters.

I will add code to FFF to remove that class attribute for future downloads. But I need to think about it more first to decide if it's worth adding code to change existing downloaded chapters also.

I suspect this is a (somewhat) recent change to Calibre's default settings for Conversion? I feel like I would have run into it before working on base efiction sites, since I do use conversion...
I have made the change that you advised, just tested it out. It WORKED!

It must have defaulted to that setting when I did the update that wiped out my libraries.

You are awesome!
tricklem is offline   Reply With Quote
Advert
Old 12-13-2021, 01:35 AM   #6753
Mandabar
Fanfiction Devourer
Mandabar ought to be getting tired of karma fortunes by now.Mandabar ought to be getting tired of karma fortunes by now.Mandabar ought to be getting tired of karma fortunes by now.Mandabar ought to be getting tired of karma fortunes by now.Mandabar ought to be getting tired of karma fortunes by now.Mandabar ought to be getting tired of karma fortunes by now.Mandabar ought to be getting tired of karma fortunes by now.Mandabar ought to be getting tired of karma fortunes by now.Mandabar ought to be getting tired of karma fortunes by now.Mandabar ought to be getting tired of karma fortunes by now.Mandabar ought to be getting tired of karma fortunes by now.
 
Posts: 47
Karma: 539564
Join Date: Nov 2012
Device: Android: Moon+ Reader Pro
As a notice for those of you using flaresolver for fanfiction.net, you will need to update to newest release as of today for it to continue to work, version 2.1.0.
One of the lines on the changelog shows that they fixed the bypass for the new protections.
* Bypass new Cloudflare protection

I noticed it wasn't working Saturday with my weekly story that updates then. Luckily only had to wait till today for an updated version.
Mandabar is offline   Reply With Quote
Old 12-13-2021, 03:13 AM   #6754
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,035
Karma: 75555555
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
Thanks for letting us know.
ownedbycats is online now   Reply With Quote
Old 12-13-2021, 10:46 AM   #6755
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,993
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
Flaresolverr v2.1.0 worked just now when I tested it.

(Still doesn't work with images, though.)
JimmXinu is offline   Reply With Quote
Advert
Old 12-13-2021, 09:52 PM   #6756
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,035
Karma: 75555555
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
Question: Short of editing the database directly, is it possible to export FFF's settings from one library and import to another?

The text in the view library preferences dialog isn't editable (likely for the best; json is extremely easy to break) but I failed to see an import/export option anywhere.
ownedbycats is online now   Reply With Quote
Old 12-14-2021, 12:31 PM   #6757
agumon1123
Member
agumon1123 began at the beginning.
 
Posts: 21
Karma: 10
Join Date: Jan 2016
Device: none
Has anyone else noticed their reject URLs list not working on AO3 emails? it only happens on AO3 for me and I have discard URLs on reject list on but their not discarding them. It's been happening for about a week and I didn't change any settings between the day it was working fine and the day it stopped working. I think AO3 might have changed their emails someway.
agumon1123 is offline   Reply With Quote
Old 12-14-2021, 02:59 PM   #6758
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,993
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
Quote:
Originally Posted by ownedbycats View Post
Question: Short of editing the database directly, is it possible to export FFF's settings from one library and import to another?
If you run calibre in debug mode, FFF will allow you to edit the settings JSON directly. With all the accompanying risk.

When you create a new library and switch to it, then go into FFF settings, FFF is supposed to copy it's settings from the previous library you just left. But I confess probably I haven't tested that in years.

Quote:
Originally Posted by agumon1123 View Post
Has anyone else noticed their reject URLs list not working on AO3 emails? it only happens on AO3 for me and I have discard URLs on reject list on but their not discarding them. It's been happening for about a week and I didn't change any settings between the day it was working fine and the day it stopped working. I think AO3 might have changed their emails someway.
I may have seen something like that--I believe I was offered the reject yes/no dialog when 'Discard URLs on Reject List' checked. But I don't know what site it was for.

I don't have any AO3 update notice emails handy. I could use to see one, or a URL for a story that updates very frequently.
JimmXinu is offline   Reply With Quote
Old 12-14-2021, 07:37 PM   #6759
tricklem
Connoisseur
tricklem began at the beginning.
 
tricklem's Avatar
 
Posts: 60
Karma: 10
Join Date: Feb 2015
Device: none
Quote:
Originally Posted by JimmXinu View Post
I think the problem is an interaction between Calibre's Convert and the HTML from the site.

The epub you attached is output from Calibre Convert (epub->epub?)--not FFF.

Looking at your epub, the text is there, but the chapters have all been split into more than one file inside the epub. Just next page/page down from the chapter title and the text starts in a separate file.

A bit of testing shows that is what a Calibre epub -> epub conversion does to the FFF output from starslibrary.net.

Calibre's convert settings for 'Structure detection' is looking for tags with class="chapter". Which starslibrary.net (and all Base eFiction sites ) have marking the <div> tag containing the chapter text. By default (I assume--I don't remember changing that), Calibre is adding a 'pagebreak' there, apparently implemented as a break between files. Which it puts between the chapter title and the chapter text.

Trying to update such an epub gives me "FanFicFare doesn't recognize chapters in existing epub...". Which makes sense--it doesn't match FFF's file structure anymore.

So, the answer is, unfortunately, that any FFF Base eFiction site epub you did a calibre epub->epub convert on is likely broken as far as FFF update is concerned.

The only immediate fix is 'Don't do that.' Which isn't a great answer for people who convert to azw3 for Kindle (like me).

You have to go into Calibre's Conversion, Common options, under Structure detection and change the Chapter mark setting to 'None'. That will prevent new conversions from splitting the chapters.

I will add code to FFF to remove that class attribute for future downloads. But I need to think about it more first to decide if it's worth adding code to change existing downloaded chapters also.

I suspect this is a (somewhat) recent change to Calibre's default settings for Conversion? I feel like I would have run into it before working on base efiction sites, since I do use conversion...
Just in case anyone else is or does have this issue.....I spoke too soon because I was still having this issue with FF.net, so I went into Preferences and under Adding Books unchecked Automatically Convert Books to the Preferred Output Format under adding Actions and under Automatic Adding. It seems to have fixed the issue as I just tried with updating a story from FF.net.
tricklem is offline   Reply With Quote
Old 12-14-2021, 08:40 PM   #6760
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,993
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
New test version posted

2021-12-14
- adapter_archiveofourownorg: AO3 notification emails now sending http: instead of https:

Quote:
Originally Posted by JimmXinu View Post
I don't have any AO3 update notice emails handy. I could use to see one, or a URL for a story that updates very frequently.
Got one. I do see the Reject dialog coming up because the chapter URL as returned from the email and isn't in the reject list on the first pass.

Ah, they've started sending http: instead of https: URLs. No idea why, but I have a fix. Assuming that's what you (agumon1123) are seeing, this should fix it.

Quote:
Originally Posted by tricklem View Post
Just in case anyone else is or does have this issue.....I spoke too soon because I was still having this issue with FF.net, so I went into Calibre Preferences and under Adding Books unchecked Automatically Convert Books to the Preferred Output Format under adding Actions and under Automatic Adding. It seems to have fixed the issue as I just tried with updating a story from FF.net.
Good point. I would add a word, for clarification.
JimmXinu is offline   Reply With Quote
Old 12-14-2021, 09:30 PM   #6761
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,035
Karma: 75555555
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
Quote:
Originally Posted by JimmXinu View Post
Ah, they've started sending http: instead of https: URLs. No idea why, but I have a fix.
That's... odd, because I was under the impression that AO3 redirected to https anyways.
ownedbycats is online now   Reply With Quote
Old 12-15-2021, 12:05 AM   #6762
chrisric
Member
chrisric began at the beginning.
 
Posts: 15
Karma: 10
Join Date: Jan 2020
Device: iPhone/Voice Dream Reader
Hi,

Is there a way to make "use_browser_cache:true" global? I tried adding it for www.novelfull.com and got the error saying it's only for 2 specific sites.

If not, is there a way to point FFF to webtoepub generated epubs for updates? Yes, thats ugly but not sure what else to do except full manual processing.

I tried to get flareresovlerr going but its beyond me (just FYI, not looking for support), thats why I've gone this route.

Thanks.

-Chris
chrisric is offline   Reply With Quote
Old 12-15-2021, 10:42 AM   #6763
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,993
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
Quote:
Originally Posted by chrisric View Post
Is there a way to make "use_browser_cache:true" global? I tried adding it for www.novelfull.com and got the error saying it's only for 2 specific sites.

If not, is there a way to point FFF to webtoepub generated epubs for updates? Yes, thats ugly but not sure what else to do except full manual processing.

I tried to get flareresovlerr going but its beyond me (just FYI, not looking for support), thats why I've gone this route.
The browser cache feature only works with a very few specific sites that are hardcoded into it. It's a nasty kludge solution that I really don't want to expand.

WebToEpub doesn't save story metadata (or even chapter text) in a consistent way from site to site. I did make some test code last year for reading WebToEpub output for ffnet, but it wouldn't work for other sites and I never came up with a way I liked to incorporate it into FFF's architecture.

For me, FlareSolverr 'just works' using the flaresolverr-v2.1.0-windows-x64.zip version and run from a command prompt. Until Cloudflare changes again, at least. That's always going to be a moving target.
JimmXinu is offline   Reply With Quote
Old 12-17-2021, 10:15 AM   #6764
tricklem
Connoisseur
tricklem began at the beginning.
 
tricklem's Avatar
 
Posts: 60
Karma: 10
Join Date: Feb 2015
Device: none
Quote:
Originally Posted by tricklem View Post
Just in case anyone else is or does have this issue.....I spoke too soon because I was still having this issue with FF.net, so I went into Preferences and under Adding Books unchecked Automatically Convert Books to the Preferred Output Format under adding Actions and under Automatic Adding. It seems to have fixed the issue as I just tried with updating a story from FF.net.
So, some additional info that I have learned about this to share with anyone also having this issue. I have also found that I have to delete the Original_EPUB file in the metadata before updating or I get the same issue. As soon as I delete that the update works like a charm. I am not sure how to stop Calibre from creating this. As soon as I delete it, then do my update (works no problem all chapters are there), then check the metadata again the file is back and I will have to delete it again before the next update. Totally weird.

I have attached a screen shot with the extra file circled.

EDIT: Just figured it out! So when I had to rebuild my library, there was an extra file in each file location labeled Original EPUB. I went in to the file location and deleted them all. Looks to have fixed the issue.
Attached Thumbnails
Click image for larger version

Name:	Calibre Extra file.png
Views:	153
Size:	43.1 KB
ID:	190871  

Last edited by tricklem; 12-17-2021 at 10:24 AM.
tricklem is offline   Reply With Quote
Old 12-21-2021, 02:01 PM   #6765
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,993
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
New Test Version Posted

2021-12-21
- Refactoring of cli.py by hseg.
- Tweaks to base_xenforoforum tagsfromtitle default replace_metadata by hseg.
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 06:45 PM.


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