View Single Post
Old 06-18-2014, 02:54 PM   #796
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 28,738
Karma: 206739468
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
I'm still seeing a slight issue with AZW4/Print Replica in v0.72.

Line 454 (in processPrintReplica) of kindleunpack.py attempts to initiate the class OPFProcessor (mobi_opf.py) with an insufficient number of parameters. Should not OPFProcessor's 'pagemapxml' parameter be made optional?

From (mobi_opf.py line 11):
Code:
def __init__(self, files, metadata, filenames, imgnames, isNCX, mh, usedmap, pagemapxml, guidetext=False, k8resc=None):
to:
Code:
def __init__(self, files, metadata, filenames, imgnames, isNCX, mh, usedmap, pagemapxml='', guidetext=False, k8resc=None):
Other than that, I've had great luck plopping the refactored code into my plugin's framework.

I just have to figure out what to do about letting users select an apnx file from the plugin. I'm leaning toward not worrying about it at all. There's no way to store an apnx file WITH the book in calibre anyway, so I'm thinking of just leaving that as a feature they'll need to use the standalone version of KindleUnpack for. We'll see.

Last edited by DiapDealer; 06-18-2014 at 03:03 PM.
DiapDealer is offline   Reply With Quote