]> xmof Git - DeDRM.git/commit
Support ebook-convert
authorErik Brinkman <erik.brinkman@gmail.com>
Sun, 20 Sep 2020 20:43:23 +0000 (16:43 -0400)
committerGitHub <noreply@github.com>
Sun, 20 Sep 2020 20:43:23 +0000 (16:43 -0400)
commitc5163068582b356cbfd35c764c8e403599145fe9
treea7d7ab9764061927cabd07b178e17ce44c662f00
parent4868a7460e39910ad22d0949d26b3250656dea46
Support ebook-convert

`ebook-convert`  converts ebooks without adding them to the calibre library, and so dedrm_tools fails to run and convert books that are processed in this way. Adding on_preprocess means that it will also run on any preprocessing allowing these tools to be used by the cli tools.

As far as I'm aware, there's nothing wrong with having this run in both instances, and it still seems to allow conversion in the "standard way".
DeDRM_plugin/__init__.py