How I update and fix ebooks… automatically

Jens Troeger
Jul 21 · 4 min read

What is an outdated, invalid, or broken ebook anyway?

A terminal window showing the output of running the tool epubcheck. For the checked ebook, this yielded 325 errors.
A terminal window showing the output of running the tool epubcheck. For the checked ebook, this yielded 325 errors.
Example of running epubcheck on an invalid ebook in EPUB 2 format.

Let’s fix this ebook

A terminal window showing the result of running the epubdate script with the “help” command-line option.
A terminal window showing the result of running the epubdate script with the “help” command-line option.
The epubdate.sh script talks directly to the Bookalope server which updates and fixes the EPUB file.
A terminal window running the epubdate shell script to update and fix a broken EPUB file.
A terminal window running the epubdate shell script to update and fix a broken EPUB file.
Run the epubdate.sh script to update and fix the example ebook.

Jens Troeger

Written by

Passionate code monkey, underwater photographer, meditation guide, traveler, book lover and typophile. Maker of @bookalope.

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade