Skip to content

Commit

Permalink
Support ebook-convert
Browse files Browse the repository at this point in the history
`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".
  • Loading branch information
erikbrinkman authored Sep 20, 2020
1 parent 4868a74 commit c516306
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions DeDRM_plugin/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ class DeDRM(FileTypePlugin):
minimum_calibre_version = (1, 0, 0) # Compiled python libraries cannot be imported in earlier versions.
file_types = set(['epub','pdf','pdb','prc','mobi','pobi','azw','azw1','azw3','azw4','azw8','tpz','kfx','kfx-zip'])
on_import = True
on_preprocess = True
priority = 600


Expand Down

0 comments on commit c516306

Please sign in to comment.