View Single Post
Old 04-08-2018, 05:24 PM   #29
misterr0b0t
Junior Member
misterr0b0t began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Apr 2018
Device: Kindle Paperwhite
Quote:
Originally Posted by jhowell View Post
The only files actually needed from the Android app are the .kfx files (book content) and the .ast file (DRM voucher). Extra files are ignored.

The simplest way to do this is to place the contents of the B0xxxxxxxx directory in a ZIP file. Then change the extension of the ZIP file from .zip to .kfx-zip and import that into calibre.
I changed the extension of the zip file from .zip to .kfx-zip and was able to import it into Calibre. However, after the import, the imported file shows the format as KFX-ZIP instead of KFX. I ran Calibre in debug mode and tried importing the book again. This is what the log file shows:

calibre Debug log
calibre 3.21 embedded-python: True is64bit: False
Windows-10-10.0.16299-SP0 Windows ('32bit', 'WindowsPE')
32bit process running on 64bit windows
('Windows', '10', '10.0.16299')
Python 2.7.12+
Windows: ('10', '10.0.16299', 'SP0', u'Multiprocessor Free')
Interface language: None
Successfully initialized third party plugins: Gather KFX-ZIP File Type (from KFX Input) (1, 2, 0) && DeDRM (6, 6, 0) && Package KFX File Type (from KFX Input) (1, 2, 0) && KFX metadata reader (from KFX Input) (1, 2, 0) && KFX Input (1, 2, 0)
calibre 3.21 embedded-python: True is64bit: False
Windows-10-10.0.16299-SP0 Windows ('32bit', 'WindowsPE')
32bit process running on 64bit windows
('Windows', '10', '10.0.16299')
Python 2.7.12+
Windows: ('10', '10.0.16299', 'SP0', u'Multiprocessor Free')
Interface language: None
Successfully initialized third party plugins: Gather KFX-ZIP File Type (from KFX Input) (1, 2, 0) && DeDRM (6, 6, 0) && Package KFX File Type (from KFX Input) (1, 2, 0) && KFX metadata reader (from KFX Input) (1, 2, 0) && KFX Input (1, 2, 0)
Turning on automatic hidpi scaling
devicePixelRatio: 1.0
logicalDpi: 96.0 x 96.0
physicalDpi: 92.5388994307 x 92.6756756757
Using calibre Qt style: True
[0.00] Starting up...
[0.00] Showing splash screen...
[0.05] splash screen shown
[0.05] Initializing db...
[0.08] db initialized
[0.08] Constructing main UI...
[1.81] main UI initialized...
[1.81] Hiding splash screen
[16.45] splash screen hidden
[16.45] Started up in 16.45 seconds with 408 books
DeDRM v6.6.0: Trying to decrypt B00FWOKE28.kfx-zip
Using Library AlfCrypto Python
Decrypting KFX-ZIP ebook: B00FWOKE28
Found 2 keys to try after 0.1 seconds
Decrypting KFX DRM voucher: amzn1.drm-voucher.v1.56acb1d8-56cd-427e-b50d-b55aa4c44ad0.ast
DeDRM v6.6.0: Failed to decrypt with error: Failed to decrypt KFX DRM voucher with any key
DeDRM v6.6.0: Looking for new default Kindle Key after 0.8 seconds
searching for kinfoFiles in C:\Users\Kenny Chan\AppData\Local
No K4PC kindle.info/kinf/kinf2011 files have been found.
DeDRM v6.6.0: Ultimately failed to decrypt after 0.8 seconds. Read the FAQs at Harper's repository: https://github.com/apprenticeharper/...master/FAQs.md
Running file type plugin DeDRM failed with traceback:
Traceback (most recent call last):
File "site-packages\calibre\customize\ui.py", line 171, in _run_filetype_plugins
File "calibre_plugins.dedrm.__init__", line 620, in run
File "calibre_plugins.dedrm.__init__", line 570, in KindleMobiDecrypt
DeDRMError: DeDRM v6.6.0: Ultimately failed to decrypt after 0.8 seconds. Read the FAQs at Harper's repository: https://github.com/apprenticeharper/...master/FAQs.md
Package KFX File Type (from KFX Input) 1.2.0: Packaging C:/Users/Kenny Chan/Desktop/KFX/B00FWOKE28.kfx-zip
Processing container: CR!0D05ZRH8RH7YQ7A0RRMZM129PQ3N.kfx
Processing container: CR!1QE2C8QH596MF1NQJF2GQP89X2W9.kfx
Processing container: CR!2BFA0R2HW53FBE921DYXD6W8084H.kfx
Processing container: CR!3XRB5FZ7XD6BD5MS19H2BNEJGA0E.kfx
Processing container: CR!559X20NXAN7X54MJ72MGCYXANKTE.kfx
Processing container: CR!5GW6A1BPDN0HQ8Q74GKA97GHG9QE.kfx
Processing container: CR!5Q3RHC3VYX3TH34K3DMBV6YN68WR.kfx
Processing container: CR!6PNJJD115H53S98Q4CVCWXBRJ66Q.kfx
Processing container: CR!6TZ8PSWBJS7E59D9TTM22M2QKS5F.kfx
Processing container: CR!7CMH2AS2QN62Q2AZEH4XF99M1RD0.kfx
Processing container: CR!7QA6SWY1CN2MH1PV8RQWBHPXDFY7.kfx
Processing container: CR!7WWAHWXZJ51R74PEBJQPX29N47AQ.kfx
Processing container: CR!9E9FFGNK0S4GDE8Y90ZE8AEG6RNA.kfx
Processing container: CR!A20EW5MKM15HQFTWQBG6FRGZSXJH.kfx
Processing container: CR!APDF6D5F890N3957H8KJ3ETXW88S.kfx
Processing container: CR!B7FY9PM4AH4ZZ6ZR4BW83XP5CQJZ.kfx
Processing container: CR!BJHG9FZKC15KVF8GHQ3X85QKX6Q3.kfx
Processing container: CR!BYWS8QDERS6MZ6R797C8FSXGXASJ.kfx
Processing container: CR!C3W7QY764H4HZDB9YMT5WRQKHN4E.kfx
Processing container: CR!FW229VJ33137N43SBPPXPPDMZ3RZ.kfx
Processing container: CR!GMDF52E0T53PS0K6SVE6FQ9MW1G4.kfx
Processing container: CR!JSB70ZYM595A58GCF8MGH0RP1WCN.kfx
Processing container: CR!K932DBYX857SZ4RG4C37J6SG7CBC.kfx
Processing container: CR!M7DW4EXZF90AZ773B168AR1SE3Y4.kfx
Processing container: CR!MSVSWTKZC53D5F0TSSWASE9BCR1B.kfx
Processing container: CR!N1N207CMEH3WH2VFM387NJDS8W3B.kfx
Processing container: CR!N3H2P8S3T93Z5F9XHRDPM9A55SW4.kfx
Processing container: CR!N7GKM2PPP936BD5XWR0P6B23D608.kfx
Processing container: CR!NRPTGRN4Q15D54VKM1CCX55NPBKS.kfx
Processing container: CR!PBEYN6J2RX0HS13ETW7KV6AZTS0G.kfx
Processing container: CR!R01J0MBEWX7FV7M91K6DSDE2ADWD.kfx
Processing container: CR!R5DAPETPJN0WX8RV21600Z70J38P.kfx
Processing container: CR!SK523QM4B93VZAPMKYBK30GMGBB0.kfx
Processing container: CR!SWDSBJCQ2N1TDE4YDRD994V45R8Z.kfx
Processing container: CR!VAQN6RXCWS0RKEMR4C6375477XJA.kfx
Processing container: CR!VDEWKDMMR96Z58TV1RJX0W6Z8MPS.kfx
Processing container: CR!W2TTQHBY9N31Q5PP99EZMM49KX38.kfx
Running file type plugin Package KFX File Type (from KFX Input) failed with traceback:
Traceback (most recent call last):
File "site-packages\calibre\customize\ui.py", line 171, in _run_filetype_plugins
File "calibre_plugins.kfx_input.package_filetype", line 22, in run
File "calibre_plugins.kfx_input.package_filetype", line 35, in run_kfx
File "calibre_plugins.kfx_input.kfxlib.yj_book", line 52, in convert_to_single_kfx
File "calibre_plugins.kfx_input.kfxlib.yj_book", line 118, in decode_book
File "calibre_plugins.kfx_input.kfxlib.yj_book", line 205, in get_container
KFXDRMError: Book container CR!W2TTQHBY9N31Q5PP99EZMM49KX38.kfx has DRM and cannot be converted
KFX metadata reader activated for C:/Users/Kenny Chan/Desktop/KFX/B00FWOKE28.kfx-zip
Added The Essential Calvin and Hobbes: A Calvin and Hobbes Treasury to db in: 1.4
Added 1 books in 5.5 seconds
misterr0b0t is offline   Reply With Quote