Bug in Test Version Discarded Images in Epub During Update (Now Fixed)

12 views
Skip to first unread message

Jim Miller

unread,
Jun 12, 2025, 11:52:56 PMJun 12
to FanFicFare -- Downloader for FanFiction

FYI, on 2025-06-02(v4.46.2) a bug was introduced in the TEST version only of FFF that discarded existing images in epubs during update and marked them all as failedtoload.  *New* images, or new downloads (not updates) were not affected.

I've posted new test versions to fix this.  If you downloaded the FFF test version between 2025-06-02(v4.46.2), you should upgrade to before doing any more epub update.

Unfortunately, it also means you may need to fix or re-download some epubs.

The simple solution is to just redownload any epubs containing images that you updated using that version.

If you know how, you can edit the affected epubs, searching for <img> tags src="failedtoload". Remove those files (or even just the <meta name="chapterurl" ...> line at the top of the file) and do -U/--update-epub-always on the epub.

Doing that can save a lot of page downloads for unaffected pages.

Matěj Cepl

unread,
Jun 13, 2025, 2:54:08 AMJun 13
to fanfic-d...@googlegroups.com
On Fri Jun 13, 2025 at 5:53 AM CEST, Jim Miller wrote:
> If you know how, you can edit the affected epubs, searching for <img>
> tags src="failedtoload". Remove those files (or even just the <meta
> name="chapterurl" ...> line at the top of the file) and do
> -U/--update-epub-always on the epub.

Just for searching (it R/O) there is my project https://pypi.org/project/epubgrep/

$ epubgrep failedtoload **/*.epub

(with shopt globstar on) just runs simple search on the content of the files

$ epubgrep -c failedtoload **/*.epub|sort -nr|uniq|head -n20

(those last three elements of the pipe I have aliased to `sr`)
will just make a list of all epubs where FanFicFare failed to
load an image (and there might be many legitimate reasons to do
so, mostly that a crappy image hosting side author linked to went
down).

$ epubgrep --help

works. Just that the pattern could be a regular expression.

More information on https://git.sr.ht/~mcepl/epubgrep (and the
email list on https://lists.sr.ht/~mcepl/devel).

Best,

Matěj

--
http://matej.ceplovi.cz/blog/, @mc...@en.osm.town
GPG Finger: 3C76 A027 CA45 AD70 98B5 BC1D 7920 5802 880B C9D8

Be pitiful, for every man is fighting a hard battle.
-- Ian MacLaren, at least 1898

E09FEF25D96484AC.asc
signature.asc
Reply all
Reply to author
Forward
0 new messages