View Single Post
Old 11-02-2021, 01:12 AM   #6632
Garasou
Junior Member
Garasou began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Jul 2016
Device: none
Quote:
Originally Posted by bpothier View Post
Seeing an issue with SOL where "long" chapters are not fully loading - manually see it continue loading when you scroll to that point in browser.

e.g. SOL.../s/26150/the-gadgeteer - Chapter 3

FFF is instead only getting to the "There is more of this text..." and recording that. e.g.:
Code:
<div id="sr"><div class="c b"><i>There is more of this text...</i><br><a href="javascript:void(0)" onclick="ld1()" style="display:block;margin:15px auto auto auto;box-shadow:0 0 .3em #777;padding:5px;border-radius:.3em;font-weight:bold;font-family:sans-serif;text-align:center;max-width:15em">Click to Load text...</a></div></div>
The "ld1()", "fetchData()" and "fd()" JS looks to be defined in "SOL.../res/js/min.story.1.2.js"

Code:
function ld1(){var b=true;if(b){var a=story_id+5;fetchData("tl","gt",[story_id,pid,ci,a],sver);b=false}}
This appears to be a "recent" site update (last few days?) - guessing there is/was something similar previously, so hopefully just a quick fix...

For everyone else, you can check for the "There is more" text inside recent EPUBs with something like:
Code:
find . -mtime -3 -name \*.epub | while read EPUB ; do echo "=====> ${EPUB}"; unzip -c "${EPUB}" | egrep "fff_chapter_title|There is more of this text" | grep -B1 "There is more of this text"; done
This will list which chapters are "incomplete", you can then edit the EPUB, delete those chapters and re-download (once a fix is confirmed..)
I'm honestly just going to have FFF force the full download of all the stories updated after date X when/if it's updated to get around this change to the site as having to manually edit each epub is way more work then just having FFF chug along in the background downloading everything.
Garasou is offline   Reply With Quote