mostly-adequate-guide icon indicating copy to clipboard operation
mostly-adequate-guide copied to clipboard

Google play books fails to import .epub

Open therazor opened this issue 8 years ago • 12 comments

I've tried to upload various versions to google play books now, and they always fail with the error "This file cannot be processed.".

It seems that this is a problem similar to what pro git 2 encountered. Google recommends using an ePub validator, and the current ePub does indeed not pass the validation.

therazor avatar Oct 06 '15 13:10 therazor

I just updated the invalid footnotes [^this stuff] and it seems to be working much better in ibooks now. This may be fixed for google play

DrBoolean avatar Oct 19 '15 17:10 DrBoolean

It still doesn't like it, however the validator has fewer errors now.

It seems like it's missing mostly image alts and a few ids, hopefully that's all that needs to be fixed for play books to parse it?

therazor avatar Oct 20 '15 08:10 therazor

I ran the epub file validator against it and got the following errors today. Hope that's helpful

epub validator beta results

tnguyen14 avatar Oct 20 '15 17:10 tnguyen14

I fixed all errors from epub file validator. Now it works well in Google Play Books.

Fixed version (ZIP): mostly-adequate-guide.epub.zip

itsmepetrov avatar Jan 01 '16 19:01 itsmepetrov

Wow! Thanks! Is that local or PR?

DrBoolean avatar Jan 01 '16 19:01 DrBoolean

Local. I added alt attribute in img tags and fixed links to 11 Chapter/Summary/Contributing/Translations.

Unfortunately, I do not know how to fix these problems in gitbook :(

itsmepetrov avatar Jan 01 '16 19:01 itsmepetrov

Right on. thanks for providing a download!

DrBoolean avatar Jan 01 '16 20:01 DrBoolean

Hopefully this will help some of you. Method I use: Books I've purchased from Google Play Books, downloaded and opened with Adobe Digital Editions, Calibre and the deDRM plugin to remove the Digital Rights. Conundrum: I was getting the, "this file cannot be processed" error message on a small percentage of books I uploaded to Google Play Books. I remove the DRM in the same manner with all books yet some epub files still wouldn't upload. I used the epub validator on the offending titles and they did indeed report back numerous errors. Then, for curiosity's sake, I tested one of the books that I successfully uploaded. The validator listed similar errors for the books that uploaded correctly. I opened the offending file yet again in Calibre and chose to convert the book from input file epub to output file epub. And voila. It worked. I've successfully repaired and uploaded all of the books that originally incurred the aforementioned error message, utilizing this method.

nnnn6 avatar Sep 25 '17 03:09 nnnn6

@nnnn6 I just tried Calibre with deDRM Tools. Still no luck uploading the EPUB to Play Books.

LayZeeDK avatar Dec 06 '17 09:12 LayZeeDK

I'll have a look into this soon, reviewing a bit the build process for the different formats we have, integrating that with some CI tools like Travis also if possible. Though, it might simply be an issue with the gitbook cli (likely fixed by a more recent version of the binary).

KtorZ avatar Dec 06 '17 11:12 KtorZ

I solved this by converting the epub file to mobi format (mobi is the format kindle uses) and then converting it back again to epub. After doing this, it uploaded the new epub file to google books with no problems.

batiars avatar Dec 20 '18 04:12 batiars

I solved this by converting the epub file to mobi format (mobi is the format kindle uses) and then converting it back again to epub. After doing this, it uploaded the new epub file to google books with no problems.

It worked for me..thank you so much

suchiabi avatar Jul 19 '20 19:07 suchiabi