04-08-2018, 07:44 PM | #31 | |
Junior Member
Posts: 4
Karma: 10
Join Date: Apr 2018
Device: Kindle Paperwhite
|
Quote:
|
|
04-08-2018, 08:09 PM | #32 | |
Grand Sorcerer
Posts: 6,754
Karma: 86500093
Join Date: Nov 2011
Location: Charlottesville, VA
Device: Kindles
|
Quote:
Try Apprentice Harper’s GitHub or Apprentice Alf’s blog. |
|
Advert | |
|
04-08-2018, 08:27 PM | #33 |
Junior Member
Posts: 4
Karma: 10
Join Date: Apr 2018
Device: Kindle Paperwhite
|
|
04-09-2018, 09:39 AM | #34 |
Grand Sorcerer
Posts: 6,754
Karma: 86500093
Join Date: Nov 2011
Location: Charlottesville, VA
Device: Kindles
|
Version 1.3.0 - 09 Apr 2018
Fix error during conversion of books with referenced fonts that are not present: "'unicode' object has no attribute 'list_symbols'" Support additional KFX features. |
05-10-2018, 09:25 PM | #35 |
Junior Member
Posts: 9
Karma: 10
Join Date: May 2018
Device: none
|
This plug-in doesn't seem to work well with the "azw+azw.res" format.
It will just import azw (with all the low resolution images), instead of using HD images in .res files. I tried to package the whole B07C3KZ9Z8_EBOK folder into a zip as well as renamed it to kfx-zip, neither works. Any solution? Thanks! Last edited by fireattack; 05-10-2018 at 11:01 PM. |
Advert | |
|
05-10-2018, 10:53 PM | #36 | |
Grand Sorcerer
Posts: 6,754
Karma: 86500093
Join Date: Nov 2011
Location: Charlottesville, VA
Device: Kindles
|
Quote:
However, many books are still delivered in the older MOBI and KF8 formats. Those formats are handled natively by calibre and this plugin has nothing to do with them. Those MOBI and KF8 books sometimes have an associated .azw.res file that contains HD images in a similar way to the .azw6 files used on e-ink Kindle devices. Calibre ignores those files and I do not know of any method to combine them with the rest of the book. (Software for dumping the contents of these files can be found here.) Again, the KFX Input plugin has nothing to do with this issue. |
|
05-10-2018, 11:04 PM | #37 | |
Junior Member
Posts: 9
Karma: 10
Join Date: May 2018
Device: none
|
Quote:
Thank you for clearing it up, and that py2 script works wonderfully. One thing I want to add, though, is that I originally tried Kindle 1.1.7 (for avoiding kfx), and I did get a different result after re-downloading the book - same azw without res file at all. This further convinced me it's kfx lol. Last edited by fireattack; 05-10-2018 at 11:10 PM. |
|
05-16-2018, 04:00 PM | #38 |
Junior Member
Posts: 7
Karma: 10
Join Date: Sep 2015
Device: None
|
First things first, thanks so much for the plugin! I'm having some trouble when using the calibredb CLI tool to add a KFX .azw book. calibre tries to read the metadata using its built-in support for .azw files, which obviously fails. If I ZIP up the files into a .kfx-zip beforehand and then add that from the CLI, all goes as intended. Here's my command and output:
Code:
> calibredb.exe add --duplicates "L:\Dropbox\Documents\My Kindle Content\B00KFEJN3Q_EBOK\B00KFEJN3Q_EBOK.azw" Traceback (most recent call last): File "site-packages\calibre\customize\ui.py", line 417, in get_file_type_metadata File "site-packages\calibre\customize\builtins.py", line 284, in get_metadata File "site-packages\calibre\ebooks\metadata\mobi.py", line 494, in get_metadata File "site-packages\calibre\ebooks\mobi\reader\headers.py", line 284, in __init__ File "site-packages\calibre\ebooks\mobi\reader\headers.py", line 312, in identity MobiError: Unknown book type: ???|?" Gather KFX-ZIP File Type (from KFX Input) 1.3.0: Importing L:\Dropbox\Documents\My Kindle Content\B00KFEJN3Q_EBOK\B00KFEJN3Q_EBOK.azw KFX Input: Gathered 4 files as <redacted>\calibre_temp\calibre_t6twf1\ll_ch9.kfx-zip DeDRM v6.6.0: Trying to decrypt ll_ch9.kfx-zip # <DeDRM stuff> DeDRM v6.6.0: Finished after 0.3 seconds Package KFX File Type (from KFX Input) 1.3.0: Packaging <redacted>\calibre_temp\calibre_t6twf1\lcksco.kfx-zip Processing container: B00KFEJN3Q_EBOK.azw Processing container: CR!1RM96FWSQH7ZZ8854T5S9EA6ZFHW.azw.md Processing container: CR!EGDG5953SN2Y9474REC37D1B6EWZ.azw.res kfxgen version: 7.66.1.0/PackageVersion:YJReaderSDK-1.5.195.0 Month-Day:04-20/668 Features: kfxgen.pidMapWithOffset-1, kfxgen.textBlock-1, reflow-style-1 Metadata: ASIN=B00KFEJN3Q, asset_id=CR!BBH3ZQB3XS1BH6WGPYR8GB3Y7F4P, author="Forsyth, Mark", author="Mark Forsyth", cde_content_type=EBOK, content_id=B00KFEJN3Q, cover_image=600x927, creator_version=2.15.0, description=..., file_creator=YJConversionTools, is_sample=False, issue_date=2013-11-07, language=en, override_kindle_font=False, publisher="Icon Books Ltd", reading_orders=1, selection=enabled, title="The Elements of Eloquence: How to Turn the Perfect English Phrase" KFX Input: Imported as <redacted>\calibre_temp\calibre_t6twf1\avf5gn.kfx Added book ids: 1 > calibredb.exe list --for-machine --fields all [ { "author_sort": "Unknown", "authors": "Unknown", "formats": [ "<redacted>/calibre_library/Unknown/B00KFEJN3Q EBOK (1)/B00KFEJN3Q EBOK - Unknown.kfx" ], "id": 1, "identifiers": {}, "isbn": "", "languages": [], "last_modified": "2018-05-16T18:50:52+00:00", "pubdate": "0101-01-01T00:00:00+00:00", "series_index": 1.0, "size": 2187156, "tags": [], "timestamp": "2018-05-16T18:50:49+00:00", "title": "B00KFEJN3Q EBOK", "uuid": "d98de7ea-b34b-4e7f-9c4f-3ea650fe7ef9" } ] |
05-16-2018, 08:55 PM | #39 |
Grand Sorcerer
Posts: 6,754
Karma: 86500093
Join Date: Nov 2011
Location: Charlottesville, VA
Device: Kindles
|
Update: See next post!
Last edited by jhowell; 05-17-2018 at 04:43 PM. |
05-17-2018, 04:43 PM | #40 |
Grand Sorcerer
Posts: 6,754
Karma: 86500093
Join Date: Nov 2011
Location: Charlottesville, VA
Device: Kindles
|
I looked at the calibre source code and determined that the code for adding books via the command line is quite different from that used in the GUI. The "calibredb add" command uses a hard coded set of formats built into calibre from which it can gather metadata. It may be possible to add support for KFX there, but I don't know the code well enough to attempt it myself.
|
05-17-2018, 05:42 PM | #41 |
Junior Member
Posts: 7
Karma: 10
Join Date: Sep 2015
Device: None
|
Thanks for looking into it, I also reported this as a calibre bug this morning although as you say, the code is quite different so it might be one of those "it's a feature, not a bug" cases.
For now I'll ZIP up my KFX books before adding them via the CLI. |
05-18-2018, 01:48 AM | #42 |
Junior Member
Posts: 9
Karma: 10
Join Date: May 2018
Device: none
|
I'm surprised that CLI tool works with 3rd party plugin, albeit partially.
AFAIK ebook-convert.exe doesn't work with plugin at all (at least not the deDRM one). |
05-18-2018, 09:06 AM | #43 | |
Grand Sorcerer
Posts: 6,754
Karma: 86500093
Join Date: Nov 2011
Location: Charlottesville, VA
Device: Kindles
|
Quote:
I believe that the DeDRM plugin is written to only be activated when book formats are imported into calibre. It wouldn't be used for conversion even within the GUI. ----------------- It looks like the problem with "calibredb add" for books in KFX format will be resolved in the next calibre release. Last edited by jhowell; 05-18-2018 at 10:02 AM. |
|
05-18-2018, 01:32 PM | #44 | |
Junior Member
Posts: 7
Karma: 10
Join Date: Sep 2015
Device: None
|
Quote:
Yup, super quick turn-around on that one. |
|
05-21-2018, 05:14 PM | #45 |
Grand Sorcerer
Posts: 6,754
Karma: 86500093
Join Date: Nov 2011
Location: Charlottesville, VA
Device: Kindles
|
Version 1.4.0 - 21 May 2018
Fix error when converting KPF files produced by Kindle Create version 1.6: CorruptError: malformed database schema (?) Do not include extra metadata in OPF that could lead to duplicate cover pages when converting comics. Support additional KFX features. |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[Conversion Input] Microsoft Doc Input Plugin | igi | Plugins | 76 | 06-28-2019 05:47 AM |
KFX conversion, transfer back to library issue. | shoelesshunter | Conversion | 2 | 08-22-2017 07:40 PM |
[Conversion Input] LaTeX Formulas Input Conversion Plugin | sevyls | Plugins | 0 | 03-23-2015 06:52 AM |
[Input Plugin] DOCX Input | SauliusP. | Plugins | 42 | 06-05-2013 05:01 AM |
Looking For MHT Input Conversion Plugin | FlooseMan Dave | Plugins | 4 | 03-30-2010 06:52 PM |