Skip to content

samellis/epubs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 

Repository files navigation

Batch Convert epubs

When you import EPUB files into Apple Books, the application processes and re-packages them, even if the original files were Digital Rights Management (DRM) free. This modification adds DRM protection and other proprietary elements, making these files incompatible with other e-readers and applications.

Where to find Apple Books epubs?

Epubs can be found in iCloud Drive/Books/ May be easier to search for a book name in Finder, as the Books folder isn't usually visible.

How to convert back to a 'normal' epub?

This solution came from a reddit post which attributed back to this post. Essentially the epub is a directory which you cd into, then re-zip back as an epub:

cd /path/to/my/book.epub/
zip -rX ../book.epub mimetype META-INF/ OEBPS/ *

Batch Processing

The script reprocess_epubs.sh is a shell script designed to be run inside a folder which contains epub directories. It zips each one back up as an epub and saves into a directory processed_epubs.

Script has been tested and used successfully a few times, no responsibility taken for any problems caused...

About

Script to batch convert epubs after Apple Books breaks them.

Resources

Stars

Watchers

Forks

Languages