I have been searching for a concrete book for a long time and finally saw it’s been offered as an epub loan on my local library, which uses LCP DRM (Thorium Reader or something like that).

The code to remove it was itself removed from the DeDRM calibre plugin because of DMCA, but then there’s https://www.notabug.org/uhuxybim/DeDRM_tools-LCP, a fork that adds it back. The thing is: I can’t get it to work. I’ve tried older versions of calibre as seen on obscure italian threads about this fork.

I’ve tried running it in debug mode to see where it’s not working and it seems like it fails to detect that this concrete epub i’m providing has DRM and it just adds it to the calibre library as-is.

Before I dive into the code and try to extract the relevant bits to a simpler CLI utility, does anybody know how to make this work?