Quote:
Originally Posted by texasnightowl
Hmm...so far you've only used the mobidedrm as a Calibre plug-in, right? If you run the py file from a command prompt is there a different (more useful) error message?
|
As I said, I'd previously thrashed around on the command line. I ended up using it as a Calibre plug-in (very elegant) to sidestep some common user errors that I may have fallen foul of.
The "as-is" program (0.16) gives "Error: invalid file format" (which suggests to me that the PID checksum has been found to be valid). Amending the script to test against TEXtREAd instead of BOOKMOBI forces the suppression of that error but it then returns a DrmException of "Error: cannot decode Mobipocket encryption type 1" and reports, inter alia, that the "header version = 235802126"! That looks wrong so I take it that the header is not structured in the way that the unpacking expects and that the file was created using an older method than is currently addressed by mobidedrm.