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 02-11-2021, 12:03 PM   #5431
booster-t
Enthusiast
booster-t knows what time it isbooster-t knows what time it isbooster-t knows what time it isbooster-t knows what time it isbooster-t knows what time it isbooster-t knows what time it isbooster-t knows what time it isbooster-t knows what time it isbooster-t knows what time it isbooster-t knows what time it isbooster-t knows what time it is
 
booster-t's Avatar
 
Posts: 32
Karma: 2464
Join Date: Dec 2020
Location: Vancouver, Canada
Device: iPad, Mac Mini M4 Pro
Well, FF.net is at again. The latest plugin reports bad chapters and doesn't download. Calibre 5.10.1 and plugin 3.99.27 yield this:

Traceback (most recent call last):
cloudscraper.exceptions.CloudflareChallengeError: Detected a Cloudflare version 2 challenge, This feature is not available in the opensource (free) version.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
calibre_plugins.fanficfare_plugin.fanficfare.excep tions.FailedToDownload: cloudscraper reports: "Detected a Cloudflare version 2 challenge, This

Story URL: https://www.fanfiction.net/s/1358165...rmione-Granger

This was new to me so nothing to overwite.
booster-t is offline   Reply With Quote
Old 02-11-2021, 12:07 PM   #5432
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,992
Karma: 75337983
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
Use the cache in the test version.
ownedbycats is offline   Reply With Quote
Advert
Old 02-11-2021, 12:14 PM   #5433
watani
Connoisseur
watani began at the beginning.
 
Posts: 51
Karma: 10
Join Date: Oct 2014
Device: Kindle Fire HD
Is there some sort of functionality in FFF that allows for a limited number of retries for failed chapter downloads? I've had several failed downloads that have occurred without any clear pattern due to some websocket issue that causes one chapter to fail out of the entire story. While an immediate retry successfully downloads the full thing, it'd be nice if you could tell FFF to retry the chapter download after a brief pause to not require fully querying the entire story again.

Additionally, it'd also be nice if there was some sort of option to only download new chapters rather than the whole fic especially given the restrictions with FF.net. I just attempted a download of a story with 305 chapters using the default sleep time settings (total download time was 1+ hours) and apparently it was enough to trigger the Cloudflare Lvl 2 challenge, preventing the final three chapters from being retrieved.

Edit: Apparently the triggering of the level 2 challenge may have been unrelated to my download, given booster-t's reply above?

Edit 2: Ignore my requests, apparently this functionality is already in FFF under a specific update mode and I somehow misunderstood the modes even after reading through the wiki.

Last edited by watani; 02-11-2021 at 12:57 PM. Reason: New context for issue in original reply.
watani is offline   Reply With Quote
Old 02-11-2021, 12:24 PM   #5434
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,992
Karma: 75337983
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
continue_on_chapter_error:true will add a placeholder page for failed chapters. I think it's become default in one of the new test versions, and update ePub will also try to re-fetch the failed chapters was also recently added.

I've been getting the Cloudflare challenges very sporadically too—I suspect ffnet might've misconfigured something.

Last edited by ownedbycats; 02-11-2021 at 12:31 PM.
ownedbycats is offline   Reply With Quote
Old 02-11-2021, 12:35 PM   #5435
watani
Connoisseur
watani began at the beginning.
 
Posts: 51
Karma: 10
Join Date: Oct 2014
Device: Kindle Fire HD
Quote:
Originally Posted by ownedbycats View Post
continue_on_chapter_error:true will add a placeholder page for failed chapters. I think it's become default in one of the new test versions, and update ePub will also try to re-fetch the failed chapters.

I've been getting the Cloudflare challenges very sporadically too—I suspect ffnet might've misconfigured something.
I know about the continue_on_chapter_error option since I'm using the latest test version, but what I'm hoping can be added to FFF is for an option to (within the original download attempt) retry with a limited number of attempts the retrieval of just the chapters it failed to download rather than just inserting placeholders. I don't want FFF to waste time updating the whole ePub if the other chapters were already successfully updated.
watani is offline   Reply With Quote
Advert
Old 02-11-2021, 12:48 PM   #5436
ILB
Groupie
ILB can illuminate an eclipseILB can illuminate an eclipseILB can illuminate an eclipseILB can illuminate an eclipseILB can illuminate an eclipseILB can illuminate an eclipseILB can illuminate an eclipseILB can illuminate an eclipseILB can illuminate an eclipseILB can illuminate an eclipseILB can illuminate an eclipse
 
ILB's Avatar
 
Posts: 173
Karma: 8098
Join Date: Jun 2012
Location: Germany
Device: Kindle Voyage, Kindle Oasis
Quote:
Originally Posted by watani View Post
Additionally, it'd also be nice if there was some sort of option to only download new chapters rather than the whole fic especially given the restrictions with FF.net. I just attempted a download of a story with 305 chapters using the default sleep time settings (total download time was 1+ hours) and apparently it was enough to trigger the Cloudflare Lvl 2 challenge, preventing the final three chapters from being retrieved.
Which update mode do you use?
Change it to "Update EPUB if New Chapters" - but that´s only possible if you use EPUB format.

see also https://github.com/JimmXinu/FanFicFare/wiki/UpdateModes

Or you can tell FFF exactly which chapter it should download.
Add [1,5] after the URL to limit the download to chapters 1-5. Or whatever chapters you want .

Last edited by ILB; 02-11-2021 at 12:56 PM.
ILB is offline   Reply With Quote
Old 02-11-2021, 12:54 PM   #5437
watani
Connoisseur
watani began at the beginning.
 
Posts: 51
Karma: 10
Join Date: Oct 2014
Device: Kindle Fire HD
Quote:
Originally Posted by ILB View Post
Which update mode do you use?
Change it to "Update EPUB if New Chapters" - but that´s only possible if you use EPUB format.

see also https://github.com/JimmXinu/FanFicFare/wiki/UpdateModes
Ah, I see! My bad, I completely misunderstood the purpose of those modes since I thought that they still updated the full ePub. If those modes only update with the new chapters that's exactly what I wanted.
watani is offline   Reply With Quote
Old 02-11-2021, 01:04 PM   #5438
ILB
Groupie
ILB can illuminate an eclipseILB can illuminate an eclipseILB can illuminate an eclipseILB can illuminate an eclipseILB can illuminate an eclipseILB can illuminate an eclipseILB can illuminate an eclipseILB can illuminate an eclipseILB can illuminate an eclipseILB can illuminate an eclipseILB can illuminate an eclipse
 
ILB's Avatar
 
Posts: 173
Karma: 8098
Join Date: Jun 2012
Location: Germany
Device: Kindle Voyage, Kindle Oasis
Quote:
Originally Posted by watani View Post
Ah, I see! My bad, I completely misunderstood the purpose of those modes since I thought that they still updated the full ePub. If those modes only update with the new chapters that's exactly what I wanted.
That would be a perfect opportunity to tell JimmXinu if his documentation is understandable:

Quote:
Originally Posted by JimmXinu View Post
Someone took me to task a few weeks ago for the lack of documentation about what the different update modes mean in FFF plugin.

I have written a document to try and explain the basics:

https://github.com/JimmXinu/FanFicFare/wiki/UpdateModes

I'd appreciate it if people would review and comment on whether they think it is adequately clear and where it isn't.
I think it´s quite clear formulated but I use FFF for a long time. So I did already know most of it.
ILB is offline   Reply With Quote
Old 02-11-2021, 01:18 PM   #5439
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,974
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
Quote:
Originally Posted by ownedbycats View Post
I add the AO3 feeds for a few sections I like to my Mozilla Thunderbird's RSS reader to keep track of new stories. Thunderbird parses them as a text/html email, so I was able to drag & drop the ones I was interested in into the window. Now it just drops the .eml file.
I suspect that the recent change to fix notification emails with non-ascii (that you also asked for), because it now parses the message more as an email instead of an undifferentiated text block, did that.

If you want to attach some .eml files (ideally some with accented characters too) that this happens to, I will look at them. But RSS is not something I officially support.
JimmXinu is offline   Reply With Quote
Old 02-11-2021, 01:58 PM   #5440
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,992
Karma: 75337983
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
Quote:
Originally Posted by JimmXinu View Post
I suspect that the recent change to fix notification emails with non-ascii (that you also asked for), because it now parses the message more as an email instead of an undifferentiated text block, did that.

If you want to attach some .eml files (ideally some with accented characters too) that this happens to, I will look at them. But RSS is not something I officially support.
Here are two, one from ffnet and one from ao3. (Note that dragging and dropping them from a file manager results in the same as dropping from Thunderbird.) They're, as far as I can tell, valid RFC 5322 emls - Thunderbird converts the feed content into Content-Type: text/html; charset=UTF-8 messages.

One oddity though: the fic links aren't in the body itself, but in a non-standard Content-Base header, and editing it so the link is in the body itself causes it to accept. Is it possible that the changes that were made caused it to ignore headers?

I couldn't find any RSS text/html messages with accented characters, though the AO3 one contains a U+2026 ellipsis. But for testing purposes opening either file in text editor and adding the characters should work: ÀÉÏÕÛąĕĩőū

EDIT: It would be helpful if I attached the file.
Attached Files
File Type: zip eml.zip (1.9 KB, 95 views)

Last edited by ownedbycats; 02-11-2021 at 04:51 PM.
ownedbycats is offline   Reply With Quote
Old 02-11-2021, 06:29 PM   #5441
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,974
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
New Test Version Posted

2021-02-11
- Allow tweak_fg_sleep etc with any site, add defaults settings for basexenforo, fictionalley and fictionpress.
- Drag/drop of 'emails'--look for story URL in Content-Base header for Thunderbird RSS 'emails'.
- Apply 'email' proc flag when processing dragged .eml files--which are emails.
- Update translations.
JimmXinu is offline   Reply With Quote
Old 02-11-2021, 06:38 PM   #5442
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,974
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
Quote:
Originally Posted by ownedbycats View Post
... (RSS stuff) ...
Okay, this amuses me.

The RSS "email" doesn't actually contain the story URL in the email body.

But i contains it in a header field, Content-Base:, which apparently is obsolete? At least in emails?

Anyway, I added it. Merry Christmas.
JimmXinu is offline   Reply With Quote
Old 02-11-2021, 06:44 PM   #5443
tricklem
Connoisseur
tricklem began at the beginning.
 
tricklem's Avatar
 
Posts: 60
Karma: 10
Join Date: Feb 2015
Device: none
Quote:
Originally Posted by steltek View Post
Go in to configure FFF. Go to the Personal.ini tab, then hit the "Edit Personal.ini" button. When Personal.ini opens up, look for the [defaults] section right near the top. Right below [defaults], enter a new line beginning with browser_cache_path: followed by your cache path (no spaces between the : and your browser cache path).

Then, go to the [overrides] section at the bottom of Personal.ini. Paste the following text below [overrides]:

[www.fanfiction.net]

##the following line tells FFF to use the browser cache when set to true

use_browser_cache:true

##the following line limits FFF to use cache entries no older than the
##number of hours shown (in this case, cached items no 4 hours or less old).

browser_cache_age_limit:4.0

Then, save the changes to Personal.ini using the OK button. Once you have done this, you should be able to browse a fic in Firefox, then run FFF to collect the pages out of the browser cache.
Did something wrong.

I am getting this error: cloudscraper reports: "Cloudflare IUAM possibility malformed, issue extracing delay value."

This is what I have entered under personal.ini

Under defaults:
Spoiler:
## browser_cache_path:C:\Users\myname\AppData\Local\M ozilla\Firefox\Profiles\466fs7zq.default-release\cache2


Then under overrides

[overrides]
## default varies by site. Set true here to force all sites to
## collect series.
#collect_series: true

##[www.fanfiction.net]
##use_browser_cache:true
##browser_cache_age_limit:4.0
##use_browser_cache_only:true

Can anyone tell me what I did wrong?
tricklem is offline   Reply With Quote
Old 02-11-2021, 06:49 PM   #5444
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,992
Karma: 75337983
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
Quote:
Originally Posted by JimmXinu View Post
Okay, this amuses me.

The RSS "email" doesn't actually contain the story URL in the email body.

But i contains it in a header field, Content-Base:, which apparently is obsolete? At least in emails?

Anyway, I added it. Merry Christmas.
Thank you!

Content-Base was used officially in earlier versions of the HTTP and MHTML standards, but deprecated in both. But it's still used as a non-standard header in some contexts such as emails.

One of my favourite things is RFC 2324.
ownedbycats is offline   Reply With Quote
Old 02-11-2021, 07:43 PM   #5445
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,992
Karma: 75337983
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
Quote:
Originally Posted by tricklem View Post
Did something wrong.

I am getting this error: cloudscraper reports: "Cloudflare IUAM possibility malformed, issue extracing delay value."

This is what I have entered under personal.ini

Under defaults:
Spoiler:
## browser_cache_path:C:\Users\myname\AppData\Local\M ozilla\Firefox\Profiles\466fs7zq.default-release\cache2


Then under overrides

[overrides]
## default varies by site. Set true here to force all sites to
## collect series.
#collect_series: true

##[www.fanfiction.net]
##use_browser_cache:true
##browser_cache_age_limit:4.0
##use_browser_cache_only:true

Can anyone tell me what I did wrong?
You left them commented out. Remove the ##s, except the two lines just above collect_series.

Last edited by ownedbycats; 02-11-2021 at 07:52 PM.
ownedbycats 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 03:38 AM.


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