Leseratte10 / acsm-calibre-plugin

Calibre plugin for ACSM->EPUB and ACSM->PDF conversion.
https://www.mobileread.com/forums/showthread.php?t=341975
GNU General Public License v3.0
593 stars 23 forks source link

Configuration via CLI possible? #69

Open Axolord opened 8 months ago

Axolord commented 8 months ago

Bug description

I run a headless calibre instance through the calibre-web docker container from linuxserver.

DeDRM provides a small guide on how to install the plugin via the cli tools, but there is non for DeACSM.

I tried installing the plugin via calibre-customize add DeACSM.zip and copying the /config/.config/calibre/plugins directory over from a working calibre instance, that I configured via the GUI. But with this process, using calibredb add test.acsm --library /books I get:

DeACSM v0.0.16: Trying to parse file test.acsm
ADE sanity check: Can't parse activation container
DeACSM v0.0.16: ADE auth is missing or broken

Is there a possibility to use and configure the plugin from within the CLI?

Operating system

Linux

Which version of Calibre are you running?

6.28.1

Which version of the ACSM Input plugin are you running?

v0.0.16

Import type

No response

Further information

No response

Leseratte10 commented 8 months ago

There is currently no way to configure the plugin using the CLI, but copying over the existing config folder should work just fine (people have done that in the past). Can't parse activation container means the plugin was unable to find or load the activation.xml file.

Depending on the plugin version you should either have:

Are these available and do the files look like valid XML?