rrthomas / hpmor

PDF, ePUB and Mobi versions of “Harry Potter and the Methods of Rationality”, from LaTeX source
http://hpmor.com/
295 stars 55 forks source link

Processing fails when trying to upload the epub to google books #148

Closed sheepdestroyer closed 2 weeks ago

sheepdestroyer commented 1 year ago

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

entorb commented 1 year ago

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.

sheepdestroyer commented 1 year ago

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.

entorb commented 1 year ago

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 commented 1 year ago

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

entorb commented 1 year ago

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.

rrthomas commented 1 year ago

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).

lord-ne commented 10 months ago

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

entorb commented 5 months ago

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)

rrthomas commented 5 months ago

Well done @entorb!