hpmor icon indicating copy to clipboard operation
hpmor copied to clipboard

Processing fails when trying to upload the epub to google books

Open sheepdestroyer opened this issue 1 year ago • 9 comments

Processing fails when trying to upload the epub to google books: image

sheepdestroyer avatar Jun 30 '23 15:06 sheepdestroyer

Can reproduce, same for the .mobi file. Strange, since other reader seems not of have an issue with the files.

ebooks are generated by calibre's tool ebook-convert, see https://github.com/rrthomas/hpmor/blob/main/scripts/ebook/7.sh#L20

Sorry, but currently I have no idea how to fix this.

entorb avatar Jun 30 '23 19:06 entorb

Maybe that won't be much help but, converting from epub to epub using calibre 6.22 gave me a file that was accepted by Google.

sheepdestroyer avatar Jul 01 '23 15:07 sheepdestroyer

The currently used ubuntu in the GitHub Action build process is Ubuntu 22.04.2 LTS and ships with: ebook-convert (calibre 5.37.0)

Will give a Ubuntu 23.04 a try.

entorb avatar Jul 01 '23 18:07 entorb

Same problem, when creating the ebook via Ubuntu 23.04 that ships with ebook-convert (calibre 6.11.0)

entorb avatar Jul 01 '23 19:07 entorb

By the way, an experiment in my German hpmor repo turned out, that there seem to be few runner instances in GitHub Actions for Ubuntu 23.04 available, so better stick to the LTS versions.

entorb avatar Jul 05 '23 03:07 entorb

At the risk of stating the obvious, it should be possible to install a more recent calibre from Homebrew (which is included in the Ubuntu GitHub runners).

rrthomas avatar Sep 10 '23 20:09 rrthomas

Even manually fixing all the epubcheck errors still doesn't give a file that's accepted by Google Play Books

lord-ne avatar Nov 12 '23 04:11 lord-ne

Hi, I did some minor HTML cleanup to satisfy https://validator.w3.org and removed the (not needed) images. Looks like that finally fixed this issue for the epub import, see latest .epub (.mobi seems to be rejected by Google books, but I don't care for the moment)

entorb avatar Mar 26 '24 05:03 entorb

Well done @entorb!

rrthomas avatar Mar 27 '24 20:03 rrthomas