09-28-2024, 10:51 AM | #9991 |
Member
Posts: 12
Karma: 10
Join Date: Jun 2020
Device: Kindle PW3
|
Adding debug log:
(Removed log with a bunch of NFSW links. --JimmXinu) Last edited by JimmXinu; 09-28-2024 at 08:27 PM. |
09-28-2024, 11:09 AM | #9992 |
Plugin Developer
Posts: 6,551
Karma: 4277329
Join Date: Dec 2011
Location: Midwest USA
Device: Kindle Paperwhite(10th)
|
Story downloads and updates fine for me.
The log basically shows a mismatch between versions of files within the plugin. Theoretically, this shouldn't happen. In practice, we have seen it a few times. I would try:
FYI, logs should ideally be wrapped in [spoiler] and [code] tags (vs [quote]) or attached as txt files. Spoiler:
|
09-28-2024, 05:17 PM | #9993 |
Member
Posts: 12
Karma: 10
Join Date: Jun 2020
Device: Kindle PW3
|
Thanks for ideas, I did as you proposed, however issue still persists.
I followed all 5 steps. Still same error when trying to download stories. Did some more tests, results are weird. 1. Tried command line as you suggested in another thread: "c:\program files\calibre2\calibre-debug" --run-plugin FanFicFare https://storiesonline.net/s/66637/citizen-miller Book downloaded without issues into folder (not added to calibre) 2. Tried some random book from royalroad.com with calibre and FFF: download successful! 3. Tried again some other book from SOL: same problem as before. Debug log: (Removed log with a bunch of NFSW links. --JimmXinu) Last edited by JimmXinu; 09-28-2024 at 08:28 PM. |
09-28-2024, 08:26 PM | #9994 | ||
Plugin Developer
Posts: 6,551
Karma: 4277329
Join Date: Dec 2011
Location: Midwest USA
Device: Kindle Paperwhite(10th)
|
New Test Version Posted
2024-09-28 - Fix(es) for get_url_search not found when seriesUrl doesn't match an adapter site. - Fix for regression when browser_cache_simple_header_old added. Closes #1104 Quote:
There is a bug here. But it's obscure. I mean really obscure. As in, you may be the only user who would ever see it. When I updated the code to move the get_url_search() code to the adapters, I included a 'last ditch' case for not matching the search URL to any adapter. But my normal testing didn't exercise that code and it had a bug. In fact, the only way (I know of) to hit that code is to have "Check for existing Series Anthology books?" checked and then have a story with a series value either without a seriesUrl value or a seriesUrl value that isn't on any supported site. If that's a thing in normal use, I don't recall it. Enter Jager956. Back in January. January 2021, that is. Quote:
|
||
09-28-2024, 08:30 PM | #9995 |
Plugin Developer
Posts: 6,551
Karma: 4277329
Join Date: Dec 2011
Location: Midwest USA
Device: Kindle Paperwhite(10th)
|
Jager956 - MobileRead doesn't want NSFW links. I didn't realize until I was well into debugging your example were NSFW and I forgot to specify SFW.
So I removed them for you, since the problem should be solved now. |
09-28-2024, 11:03 PM | #9996 |
Enthusiast
Posts: 38
Karma: 10
Join Date: May 2012
Device: Kindle Oasis, Scribe, Paperwhite // Boox Palma
|
I'm noticing that whenever I download epubs with FFF vs directly from AO3, some of the formatting isn't retained. For example, some elements in the chapter text that are centered in the AO3 version are left-aligned when downloaded via FFF. Usually they're dividers or subheadings within a chapter.
Here's a SFW link to an example story. The beginning 2 lines after the author's note in the epub downloaded by FFF should be centered, along with the "XXX" dividers throughout the story but everything is left-aligned. Same with the dividers in this story, but another weird thing I've noticed with this particular story is that when downloaded via FFF, there isn't a space after a period to separate sentences in the body of the story. It appears normal on AO3 and in the epub that is downloaded directly from AO3, but the epub generated with FFF doesn't have a space after periods. |
09-28-2024, 11:49 PM | #9997 | ||
Plugin Developer
Posts: 6,551
Karma: 4277329
Join Date: Dec 2011
Location: Midwest USA
Device: Kindle Paperwhite(10th)
|
Quote:
From defaults.ini: Spoiler:
You can keep style and align attrs for AO3 only, or all epubs like so: Code:
[archiveofourown.org] add_to_keep_html_attrs:,style,align # use one or the other, not both [epub] add_to_keep_html_attrs:,style,align That will fix centering in these stories and lot of embedded styles in other. Quote:
For whatever reason, the HTML the author uploaded for the story text contains no newlines at all. It's all: Code:
<p>Blah blah blah.<span class="Apple-converted-space"> </span>Blah blah blah.</p><p>New paragraph, same "line".<span class="Apple-converted-space"> </span>Blah blah blah.</p> By default, FFF also removes most 'empty' tags. From defaults.ini: Spoiler:
So the <span> tags above are being removed, taking all the whitespace between sentences with them. You can keep those <span> tags by adding to keep_empty_tags. I don't recommend doing that universally, but on a story by story basis: Code:
[https://archiveofourown.org/works/43658766] add_to_keep_empty_tags:,span I honestly don't remember what ebook readers had problems with what attributes many years ago. It would have been in the days of first gen Nook and Kindle and may have been before I started working on the project. I vaguely recall that removing empty tags was added specifically for AO3 because it has (had?) a tendency to have extra 'empty' tags that introduced spaces mid word a lot. Or perhaps some word processor's HTML output did. Last edited by JimmXinu; 09-28-2024 at 11:50 PM. Reason: Hadn't finished final edit. |
||
09-29-2024, 06:32 AM | #9998 |
Member
Posts: 12
Karma: 10
Join Date: Jun 2020
Device: Kindle PW3
|
Thank you! It works great!
There is always that one weird user using software 'correctly' but in exotic way (I am programmer)... lol And sorry for NSFW links, didn't even think about it until you mentioned it. KR J. |
09-29-2024, 11:34 AM | #9999 |
Enthusiast
Posts: 38
Karma: 10
Join Date: May 2012
Device: Kindle Oasis, Scribe, Paperwhite // Boox Palma
|
Thanks! That helped out a lot! I actually had "add_to_keep_html_attrs:,style" in my personal.ini already, and I read through the wiki and defaults.ini but somehow missed adding "align" to that. Doh!
|
09-29-2024, 08:13 PM | #10000 |
Custom User Title
Posts: 9,320
Karma: 63265021
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
Question: On AO3, has anybody come across a fic with skipped chapters? It matches what I see on the website (possibly NSFW, will PM if requested), so I'm confused on what's happening here and whether it might break things for future updates.
|
09-29-2024, 10:02 PM | #10001 |
Plugin Developer
Posts: 6,551
Karma: 4277329
Join Date: Dec 2011
Location: Midwest USA
Device: Kindle Paperwhite(10th)
|
New Test Version Posted
2024-09-29 - Add decode_emails option, defaults to false. For those annoying "[email protected]" replacements some sites inject automatically. Add `decode_emails:true` in personal.ini` under `[defaults]` or a specific site section. I've only tested with SpaceBattles and AO3--that's all the examples I could find in my library. Only affects new downloads/updates. If this works well, I may change the default to true in future. |
09-30-2024, 12:08 PM | #10002 |
Junior Member
Posts: 2
Karma: 10
Join Date: Sep 2021
Device: none
|
Every asianfanfics.com link is receiving this error - HTTP Error in FFF '403 Client Error: Forbidden for url:.
|
Yesterday, 10:28 AM | #10003 | |
Plugin Developer
Posts: 6,551
Karma: 4277329
Join Date: Dec 2011
Location: Midwest USA
Device: Kindle Paperwhite(10th)
|
New Test Version Posted
2024-10-01 - Better error when utf8FromSoup called with None. - adapter_asianfanficscom: Add Is adult toggle call, use_cloudscraper:true in defaults.ini Quote:
In this case, setting use_cloudscraper:true seems to get past cloudflare. However, I then bumped into a 'click if you are over 18' check, now added. |
|
Yesterday, 09:57 PM | #10004 |
Plugin Developer
Posts: 6,551
Karma: 4277329
Join Date: Dec 2011
Location: Midwest USA
Device: Kindle Paperwhite(10th)
|
New Version Released
Version 4.39.0 - 2024-10-01 - Better error when utf8FromSoup called with None. - adapter_asianfanficscom: Add Is adult toggle call, use_cloudscraper:true in defaults.ini - Fix(es) for get_url_search not found when seriesUrl doesn't match an adapter site. - Fix for regression when browser_cache_simple_header_old added. #1104 - Add decode_emails option, defaults to false. |
Yesterday, 11:46 PM | #10005 | |
Enthusiast
Posts: 28
Karma: 10
Join Date: Jun 2012
Device: Nook
|
Quote:
|
|
Tags |
fanfiction |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[GUI Plugin] KindleUnpack - The Plugin | DiapDealer | Plugins | 494 | 05-18-2024 02:34 AM |
[GUI Plugin] Open With | kiwidude | Plugins | 403 | 04-01-2024 08:39 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 |