I got it to work. The issue was I think that at first I pulled the files through finder directly off of the device onto my filesystem. THEN, I loaded Calibre and tried to add the files from a single directory. I just tried deleting them from my Calibre, attached the device to the computer while Calibre was up, selected the two books from the Device listing in Calibre, right-clicked on them, and chose "Add books to library," and it pulled them into Calibre as expected (other than the covers being B/W, which I can fix).
ahh. yes, that would explain it. kfx relies on supporting files such as the voucher and sdr (I don't understand the specifics) but yes, if you copied the files off but they weren't in expected folders or didn't have expected support file then they would fail. Glad you got it to work.
ahh. yes, that would explain it. kfx relies on supporting files such as the voucher and sdr (I don't understand the specifics) but yes, if you copied the files off but they weren't in expected folders or didn't have expected support file then they would fail. Glad you got it to work.
Still not working here. When I point to the Kindle content folder that should have everything needed, it can't remove the DRM on my DRM free books.
Still not working here. When I point to the Kindle content folder that should have everything needed, it can't remove the DRM on my DRM free books.
Interesting. I tried 3 4 different ways.
I copied the contents of the K:\documents\Downloads\Items01 directory to a directory on my desktop so the filename.kfx files and directoryname.sdr directories were present. I used Add books and selected all the KFX files in the directory. calibre had no issue with importing the KFX files and DRM was removed. The only real issue for me was that the cover images for the KFX books were smaller and grayscale.
Pretty much the same as the first item but didn't copy the Items01 directory to my computer first and simply added from the directory on the Kindle. No noticeable differences from the files in the first item.
Switched to Device view in calibre's GUI. Selected the books I wanted, right-clicked and clicked on Add books to library. No problems other than the already noted cover image issue.
Loaded up BlueStacks and ran Kindle for Android. Downloaded 5 books and then copied them to a staging directory. This method yields KF8/azw3 files (the majority) with the occasional mobi file. Added to calibre and again no issues but covers for the the 5 books were higher resolution and in colour.
Still not working here. When I point to the Kindle content folder that should have everything needed, it can't remove the DRM on my DRM free books.
Did you make absolutely sure that K4PC did not sneaky update on you? It must be version 2.4.0. Even 2.4.1 will not work. DeDRM 10.0.9? (10.0.3 will not work.) KFX Input plugin (currently 2.22.0)?
Did you make absolutely sure that K4PC did not sneaky update on you? It must be version 2.4.0. Even 2.4.1 will not work. DeDRM 10.0.9? (10.0.3 will not work.) KFX Input plugin (currently 2.22.0)?
OK. That's the problem. Even though I have consistently told it NOT TO UPGRADE, it "helped" me out and I'm at 2.4.1.
Claims it did it yesterday. Must have been right after I got the books I downloaded.
P.S. I ran the disable update script this time. Let's see if that helps.
Is anyone else having random problems with drm removal using DeDRM? Calibre is 8.3.0, DeDRM is the alpha available from their github page (dated November 2024). Same problem with 10.0.9. The KFX input plugin is 2.23.0.
The following link is to a book that was free by way of ereaderiq.com; dunno if it's still free. When I drag it into calibre the author shows as Unknown. Trying to convert it to EPUB gives me an error saying it's locked by DRM.
Device: Kobo Clara HD,Hisence Sero 7 Pro RIP, Nook STR, jetbook lite
No problems. I used device view and right click "add to library".
Spoiler:
Code:
Convert book 1 of 1 (The Outlaw Clears His Name: A Historical Western Adventure Novel)
DeDRM v10.0.9: Trying to decrypt 750fr_2k.kfx
Unknown booktype kfx. Passing back to calibre unchanged
Conversion options changed from defaults:
margin_right: 3.0
margin_bottom: 2.0
chapter: '/'
verbose: 2
extra_css: 'p{margin-bottom: 0em;margin-top: 0em;}\nbody{line-height: 1.2; widows: 1;\n orphans: 1; margin-left: 4pt !important;\n margin-right: 4pt !important;}'
minimum_line_height: 0.0
allow_conversion_with_errors: True
output_profile: 'tablet'
epub_version: '3'
read_metadata_from_opf: '/tmp/calibre-397aedcu/7kd4kgos.opf'
cover: '/tmp/calibre-397aedcu/rz78wnwi.jpeg'
margin_left: 3.0
margin_top: 4.0
max_toc_links: 160
preserve_cover_aspect_ratio: True
remove_fake_margins: False
expand_css: True
Resolved conversion options
calibre version: 8.3.0
{'add_alt_text_to_img': False,
'allow_conversion_with_errors': True,
'asciiize': False,
'author_sort': None,
'authors': None,
'base_font_size': 0.0,
'book_producer': None,
'change_justification': 'original',
'chapter': '/',
'chapter_mark': 'pagebreak',
'comments': None,
'cover': '/tmp/calibre-397aedcu/rz78wnwi.jpeg',
'debug_pipeline': None,
'dehyphenate': True,
'delete_blank_paragraphs': True,
'disable_font_rescaling': False,
'dont_split_on_page_breaks': False,
'duplicate_links_in_toc': False,
'embed_all_fonts': False,
'embed_font_family': None,
'enable_heuristics': False,
'epub_flatten': False,
'epub_inline_toc': False,
'epub_max_image_size': 'none',
'epub_toc_at_end': False,
'epub_version': '3',
'expand_css': True,
'extra_css': 'p{margin-bottom: 0em;margin-top: 0em;}\n'
'body{line-height: 1.2; widows: 1;\n'
' orphans: 1; margin-left: 4pt !important;\n'
' margin-right: 4pt !important;}',
'extract_to': None,
'filter_css': '',
'fix_indents': True,
'flow_size': 260,
'font_size_mapping': None,
'format_scene_breaks': True,
'html_unwrap_factor': 0.4,
'input_encoding': None,
'input_profile': <calibre.customize.profiles.InputProfile object at 0x701196a2c5d0>,
'insert_blank_line': False,
'insert_blank_line_size': 0.5,
'insert_metadata': False,
'isbn': None,
'italicize_common_cases': True,
'keep_ligatures': False,
'language': None,
'level1_toc': None,
'level2_toc': None,
'level3_toc': None,
'line_height': 0.0,
'linearize_tables': False,
'margin_bottom': 2.0,
'margin_left': 3.0,
'margin_right': 3.0,
'margin_top': 4.0,
'markup_chapter_headings': True,
'max_toc_links': 160,
'minimum_line_height': 0.0,
'no_chapters_in_toc': False,
'no_default_epub_cover': False,
'no_inline_navbars': False,
'no_svg_cover': False,
'output_profile': <calibre.customize.profiles.TabletOutput object at 0x701196a3bc50>,
'page_breaks_before': '/',
'prefer_metadata_cover': False,
'preserve_cover_aspect_ratio': True,
'pretty_print': True,
'pubdate': None,
'publisher': None,
'rating': None,
'read_metadata_from_opf': '/tmp/calibre-397aedcu/7kd4kgos.opf',
'remove_fake_margins': False,
'remove_first_image': False,
'remove_paragraph_spacing': False,
'remove_paragraph_spacing_indent_size': 1.5,
'renumber_headings': True,
'replace_scene_breaks': '',
'search_replace': '[]',
'series': None,
'series_index': None,
'smarten_punctuation': False,
'sr1_replace': None,
'sr1_search': None,
'sr2_replace': None,
'sr2_search': None,
'sr3_replace': None,
'sr3_search': None,
'start_reading_at': None,
'subset_embedded_fonts': False,
'tags': None,
'timestamp': None,
'title': None,
'title_sort': None,
'toc_filter': None,
'toc_threshold': 6,
'toc_title': None,
'transform_css_rules': '[]',
'transform_html_rules': '[]',
'unsmarten_punctuation': False,
'unwrap_lines': True,
'use_auto_toc': False,
'verbose': 2}
DeDRM v10.0.9: Trying to decrypt 750fr_2k.kfx
Unknown booktype kfx. Passing back to calibre unchanged
InputFormatPlugin: KFX Input running
on /tmp/calibre-397aedcu/750fr_2k.kfx
Software versions: KFX Input 2.23.0, calibre 8.3, Linux-6.8.0-58-generic-x86_64-with-glibc2.39
KFX Input plugin help is available at https://www.mobileread.com/forums/showthread.php?t=291290
Converting /tmp/calibre-397aedcu/750fr_2k.kfx
Processing container: /tmp/calibre-397aedcu/750fr_2k.kfx
Features: CanonicalFormat-2, kfxgen.positionMaps-2, kfxgen.textBlock-1, reflow-style-1, yj_jpegxr_sd-1
Metadata: ASIN=B09WG6QC57, asset_id=CR!KBJXET7ZQD6CV0PCYRFDBJ9JMW31, author="Levine, Derek", book_id=gsi-3QH_TOqnzcfh1KlCIw0, cde_content_type=EBOK, content_id=B09WG6QC57, cover_image=784x1176, creator_version=2.15.0, file_creator=YJConversionTools, is_sample=False, issue_date=2022-03-23, kfxgen=20.12.238.0, language=en, max_id=834, min_kindle_version=5.6.5, nested_span=enabled, pages=347, publisher="Regal Quill Publishing", reading_orders=1, selection=enabled, title="The Outlaw Clears His Name: A Historical Western Adventure Novel (Love and Valor on the Frontier)"
Converting book to EPUB 3
Successfully converted kfx to EPUB -- running EPUB input plugin
Found HTML cover OEBPS/c0.xhtml
KFX Input plugin processing complete
Parsing all content...
Parsing OEBPS/cKV.xhtml ...
Parsing OEBPS/c4E.xhtml ...
Parsing OEBPS/c40.xhtml ...
Parsing OEBPS/c1HF.xhtml ...
Parsing OEBPS/c1DX.xhtml ...
Parsing OEBPS/c1K8.xhtml ...
Parsing OEBPS/c1N7.xhtml ...
Parsing OEBPS/c1D2.xhtml ...
Parsing OEBPS/c1JG.xhtml ...
Parsing OEBPS/c14Y.xhtml ...
Parsing OEBPS/c11K.xhtml ...
Parsing OEBPS/c15N.xhtml ...
Parsing OEBPS/c17F.xhtml ...
Parsing OEBPS/c23G.xhtml ...
Parsing OEBPS/c38.xhtml ...
Parsing OEBPS/cJJ.xhtml ...
Parsing OEBPS/c230.xhtml ...
Parsing OEBPS/cR2.xhtml ...
Parsing OEBPS/c3S.xhtml ...
Parsing OEBPS/cGT.xhtml ...
Parsing OEBPS/c2AS.xhtml ...
Parsing OEBPS/cY5.xhtml ...
Parsing OEBPS/stylesheet.css ...
Parsing OEBPS/c1R5.xhtml ...
Parsing OEBPS/c1WH.xhtml ...
Parsing OEBPS/cFW.xhtml ...
Parsing OEBPS/c1ZE.xhtml ...
Parsing OEBPS/cCB.xhtml ...
Parsing OEBPS/nav.xhtml ...
Parsing OEBPS/cT8.xhtml ...
Parsing OEBPS/c1Y2.xhtml ...
Parsing OEBPS/c245.xhtml ...
Parsing OEBPS/c1VH.xhtml ...
Parsing OEBPS/cA2.xhtml ...
Parsing OEBPS/c23T.xhtml ...
Parsing OEBPS/cV0.xhtml ...
Parsing OEBPS/c1M3.xhtml ...
Parsing OEBPS/c0.xhtml ...
Parsing OEBPS/c11.xhtml ...
Parsing OEBPS/c148.xhtml ...
Parsing OEBPS/c16M.xhtml ...
Parsing OEBPS/c18K.xhtml ...
Parsing OEBPS/c1G1.xhtml ...
Parsing OEBPS/c21A.xhtml ...
Parsing OEBPS/c226.xhtml ...
Parsing OEBPS/c1UK.xhtml ...
Parsing OEBPS/c9.xhtml ...
Parsing OEBPS/c8J.xhtml ...
Parsing OEBPS/cWS.xhtml ...
Parsing OEBPS/cN.xhtml ...
Parsing OEBPS/c77.xhtml ...
Parsing OEBPS/c1RW.xhtml ...
Parsing OEBPS/cSC.xhtml ...
Parsing OEBPS/c1C6.xhtml ...
Parsing OEBPS/c2AE.xhtml ...
Parsing OEBPS/cDF.xhtml ...
Parsing OEBPS/cMY.xhtml ...
Parsing OEBPS/c4X.xhtml ...
Parsing OEBPS/c28Y.xhtml ...
Parsing OEBPS/c1BC.xhtml ...
Parsing OEBPS/cZM.xhtml ...
Reading TOC from NCX...
Merging user specified metadata...
Detecting structure...
Flattening CSS and remapping font sizes...
Source base font size is 12.00000pt
Cleaning up manifest...
Trimming unused files from manifest...
Trimming 'OEBPS/toc.ncx' from manifest
Trimming 'OEBPS/nav.xhtml' from manifest
Trimming 'OEBPS/c0.xhtml' from manifest
Creating EPUB Output...
Splitting markup on page breaks and flow limits, if any...
Looking for large trees in OEBPS/cKV.xhtml...
No large trees found
Looking for large trees in OEBPS/c4E.xhtml...
No large trees found
Looking for large trees in OEBPS/c40.xhtml...
No large trees found
Looking for large trees in OEBPS/c1HF.xhtml...
No large trees found
Looking for large trees in OEBPS/c1DX.xhtml...
No large trees found
Looking for large trees in OEBPS/c1K8.xhtml...
No large trees found
Looking for large trees in OEBPS/c1N7.xhtml...
No large trees found
Looking for large trees in OEBPS/c1D2.xhtml...
No large trees found
Looking for large trees in OEBPS/c1JG.xhtml...
No large trees found
Looking for large trees in OEBPS/c14Y.xhtml...
No large trees found
Looking for large trees in OEBPS/c11K.xhtml...
No large trees found
Looking for large trees in OEBPS/c15N.xhtml...
No large trees found
Looking for large trees in OEBPS/c17F.xhtml...
No large trees found
Looking for large trees in OEBPS/c23G.xhtml...
No large trees found
Looking for large trees in OEBPS/c38.xhtml...
No large trees found
Looking for large trees in OEBPS/cJJ.xhtml...
No large trees found
Looking for large trees in OEBPS/c230.xhtml...
No large trees found
Looking for large trees in OEBPS/cR2.xhtml...
No large trees found
Looking for large trees in OEBPS/c3S.xhtml...
No large trees found
Looking for large trees in OEBPS/cGT.xhtml...
No large trees found
Looking for large trees in OEBPS/c2AS.xhtml...
No large trees found
Looking for large trees in OEBPS/cY5.xhtml...
No large trees found
Looking for large trees in OEBPS/c1R5.xhtml...
No large trees found
Looking for large trees in OEBPS/c1WH.xhtml...
No large trees found
Looking for large trees in OEBPS/cFW.xhtml...
No large trees found
Looking for large trees in OEBPS/c1ZE.xhtml...
No large trees found
Looking for large trees in OEBPS/cCB.xhtml...
No large trees found
Looking for large trees in OEBPS/cT8.xhtml...
No large trees found
Looking for large trees in OEBPS/c1Y2.xhtml...
No large trees found
Looking for large trees in OEBPS/c245.xhtml...
No large trees found
Looking for large trees in OEBPS/c1VH.xhtml...
No large trees found
Looking for large trees in OEBPS/cA2.xhtml...
No large trees found
Looking for large trees in OEBPS/c23T.xhtml...
No large trees found
Looking for large trees in OEBPS/cV0.xhtml...
No large trees found
Looking for large trees in OEBPS/c1M3.xhtml...
No large trees found
Looking for large trees in OEBPS/c11.xhtml...
No large trees found
Looking for large trees in OEBPS/c148.xhtml...
No large trees found
Looking for large trees in OEBPS/c16M.xhtml...
No large trees found
Looking for large trees in OEBPS/c18K.xhtml...
No large trees found
Looking for large trees in OEBPS/c1G1.xhtml...
No large trees found
Looking for large trees in OEBPS/c21A.xhtml...
No large trees found
Looking for large trees in OEBPS/c226.xhtml...
No large trees found
Looking for large trees in OEBPS/c1UK.xhtml...
No large trees found
Looking for large trees in OEBPS/c9.xhtml...
No large trees found
Looking for large trees in OEBPS/c8J.xhtml...
No large trees found
Looking for large trees in OEBPS/cWS.xhtml...
No large trees found
Looking for large trees in OEBPS/cN.xhtml...
No large trees found
Looking for large trees in OEBPS/c77.xhtml...
No large trees found
Looking for large trees in OEBPS/c1RW.xhtml...
No large trees found
Looking for large trees in OEBPS/cSC.xhtml...
No large trees found
Looking for large trees in OEBPS/c1C6.xhtml...
No large trees found
Looking for large trees in OEBPS/c2AE.xhtml...
No large trees found
Looking for large trees in OEBPS/cDF.xhtml...
No large trees found
Looking for large trees in OEBPS/cMY.xhtml...
No large trees found
Looking for large trees in OEBPS/c4X.xhtml...
No large trees found
Looking for large trees in OEBPS/c28Y.xhtml...
No large trees found
Looking for large trees in OEBPS/c1BC.xhtml...
No large trees found
Looking for large trees in OEBPS/cZM.xhtml...
No large trees found
Upgrading to EPUB 3...
EPUB output written to /tmp/calibre-397aedcu/uiw_dtfo.epub
edit second ebook
Spoiler:
Code:
Found device nodes: /dev/sdd None None
Syncing cover thumbnails to workaround amazon cover bug
Restored 0 cover thumbnails that were destroyed by Amazon
[168.25] [DEBUG] [koboutilities.action:KoboUtilitiesAction._on_device_connection_changed:328] self.plugin_device_connection_changed.__class__: <class 'PyQt6.QtCore.pyqtBoundSignal'>
[168.25] [DEBUG] [koboutilities.action:KoboUtilitiesAction._on_device_connection_changed:332] Methods for self.plugin_device_connection_changed: ['__call__', '__class__', '__delattr__', '__dir__', '__doc__', '__eq__', '__format__', '__ge__', '__getattribute__', '__getitem__', '__getstate__', '__gt__', '__hash__', '__init__', '__init_subclass__', '__le__', '__lt__', '__module__', '__ne__', '__new__', '__reduce__', '__reduce_ex__', '__repr__', '__setattr__', '__sizeof__', '__str__', '__subclasshook__', 'connect', 'disconnect', 'emit', 'signal']
[168.25] [DEBUG] [koboutilities.action:KoboUtilitiesAction.get_device:2524] Connected device: <calibre.devices.kindle.driver.KINDLE2 object at 0x7cdf91b62710>
[168.25] [DEBUG] [koboutilities.action:KoboUtilitiesAction.get_device:2526] No supported Kobo device appears to be connected
[168.25] [DEBUG] [koboutilities.action:KoboUtilitiesAction.set_toolbar_button_tooltip:304] start: text='None'
[168.25] [DEBUG] [koboutilities.action:KoboUtilitiesAction.device_driver_name:876] could not load extended driver. Exception= No module named 'calibre_plugins.kobotouch_extended'
[168.25] [DEBUG] [koboutilities.action:KoboUtilitiesAction.set_toolbar_button_tooltip:323] setting to text='Utilities to use with Kobo ereaders
Driver: KoboTouch'
Job: 0 Get device information started
DeviceJob: 0 Get device information done, calling callback
DeviceJob: 0 Get device information callback returned
Job: 1 Set library information started
DeviceJob: 1 Set library information done, calling callback
DeviceJob: 1 Set library information callback returned
Job: 2 Get list of books on device started
DEBUG: 0.0 USBMS: Fetching list of books from device. Device= KINDLE2 oncard= None
DEBUG: 0.0 USBMS: dirs are: /media/xxxxxxxx/Kindle/ documents
DEBUG: 0.2 USBMS: scan from root False /media/xxxxxxxx/Kindle/documents
Traceback (most recent call last):
File "calibre/devices/kindle/driver.py", line 156, in metadata_from_path
File "calibre/ebooks/metadata/kfx.py", line 296, in read_metadata_kfx
File "calibre/ebooks/metadata/kfx.py", line 125, in __init__
File "calibre/ebooks/metadata/kfx.py", line 112, in __init__
calibre.ebooks.metadata.kfx.InvalidKFX: b'CONT' magic number is incorrect (ea 44 52 4d)
failed kfx path: /media/xxxxxxxx/Kindle/documents/Downloads/Items01/The Jeweler's Secret (The Eternal Craft Book 1)_B0DNG6SS4P.sdr/assets/metadata.kfx
KFX metadata reader (from KFX Input) activated for /media/xxxxxxxx/Kindle/documents/Downloads/Items01/The Jeweler's Secret (The Eternal Craft Book 1)_B0DNG6SS4P.kfx
Job: 0 Get device information finished
No details available.
Job: 1 Set library information finished
No details available.
DEBUG: 1.1 USBMS: count found in cache: 87, count of files in metadata: 88, need_sync: True
DEBUG: 1.1 USBMS: starting sync_booklists
DEBUG: 1.7 USBMS: finished sync_booklists
DEBUG: 1.7 USBMS: Finished fetching list of books from device. oncard= None
DEBUG: 1.7 USBMS: Fetching list of books from device. Device= KINDLE2 oncard= carda
DEBUG: 1.7 USBMS: Fetching list of books from device. Device= KINDLE2 oncard= cardb
DeviceJob: 2 Get list of books on device done, calling callback
DEBUG: 1.7 DeviceJob: metadata_downloaded: Starting set_books_in_library
DEBUG: 1.8 DeviceJob: set_books_in_library: books to process= 88
DEBUG: 1.8 DeviceJob: set_books_in_library finished: time= 0.03983879089355469
DEBUG: 1.8 DeviceJob: metadata_downloaded: updating views
DEBUG: 1.8 DeviceJob: metadata_downloaded: syncing
DEBUG: 1.8 DeviceJob: metadata_downloaded: refreshing ondevice
DEBUG: 1.9 DeviceJob: metadata_downloaded: sending metadata_available signal
[170.24] [DEBUG] [koboutilities.action:KoboUtilitiesAction._on_device_metadata_available:348] Start
[170.24] [DEBUG] [koboutilities.action:KoboUtilitiesAction.get_device:2524] Connected device: <calibre.devices.kindle.driver.KINDLE2 object at 0x7cdf91b62710>
[170.24] [DEBUG] [koboutilities.action:KoboUtilitiesAction.get_device:2526] No supported Kobo device appears to be connected
[170.24] [DEBUG] [koboutilities.action:KoboUtilitiesAction.set_toolbar_button_tooltip:304] start: text='None'
[170.24] [DEBUG] [koboutilities.action:KoboUtilitiesAction.device_driver_name:876] could not load extended driver. Exception= No module named 'calibre_plugins.kobotouch_extended'
[170.24] [DEBUG] [koboutilities.action:KoboUtilitiesAction.set_toolbar_button_tooltip:323] setting to text='Utilities to use with Kobo ereaders
Driver: KoboTouch'
[170.24] [DEBUG] [koboutilities.action:KoboUtilitiesAction.set_toolbar_button_tooltip:304] start: text='None'
[170.24] [DEBUG] [koboutilities.action:KoboUtilitiesAction.device_driver_name:876] could not load extended driver. Exception= No module named 'calibre_plugins.kobotouch_extended'
[170.24] [DEBUG] [koboutilities.action:KoboUtilitiesAction.set_toolbar_button_tooltip:323] setting to text='Utilities to use with Kobo ereaders
Driver: KoboTouch'
DeviceJob: 2 Get list of books on device callback returned
Job: 3 Send metadata to device started
DEBUG: 1.9 USBMS: starting sync_booklists
Job: 2 Get list of books on device finished
No details available.
DEBUG: 3.4 USBMS: finished sync_booklists
DeviceJob: 3 Send metadata to device done, calling callback
DeviceJob: 3 Send metadata to device callback returned
Job: 3 Send metadata to device finished
No details available.
Job: 4 Prepare files for transfer from device started
DeviceJob: 4 Prepare files for transfer from device done, calling callback
DeviceJob: 4 Prepare files for transfer from device callback returned
Job: 4 Prepare files for transfer from device finished
No details available.
Gather KFX-ZIP (from KFX Input) 2.23.0: Importing /media/xxxxxxxx/Kindle/documents/Downloads/Items01/The Jeweler's Secret (The Eternal Craft Book 1)_B0DNG6SS4P.kfx
Gather KFX-ZIP (from KFX Input): Gathered 5 file(s) as /tmp/calibre-q9wdi1w6/dlzp3g91.kfx-zip
DeDRM v10.0.9: Trying to decrypt dlzp3g91.kfx-zip
Decrypting KFX-ZIP ebook: dlzp3g91
Got DSN key from database default_key
Got DSN key from database default_key11_05
Got DSN key from database kindlekey1
Got DSN key from database winvir1
Found 6 keys to try after 0.3 seconds
Decrypting KFX DRM voucher: voucher
Decryption failed, trying next fallback
Decryption succeeded
KFX DRM voucher successfully decrypted
Decrypting KFX DRMION: The Jeweler's Secret (The Eternal Craft Book 1)_B0DNG6SS4P.kfx
Decrypting KFX DRMION: metadata.kfx
Decryption succeeded after 0.4 seconds
DeDRM v10.0.9: Finished after 0.4 seconds
Package KFX (from KFX Input) 2.23.0: Packaging /tmp/calibre-q9wdi1w6/sb1ciy7n.kfx-zip
Processing container: CR!F5077QVVGN3GK7YK1S2CS51R9CF7.kfx
Processing container: CR!YAEWSG177N64XEJFRKZHBTVG6Z9C.kfx
Processing container: The Jeweler's Secret (The Eternal Craft Book 1)_B0DNG6SS4P.kfx
Processing container: metadata.kfx
Features: CanonicalFormat-2, kfxgen.positionMaps-2, kfxgen.textBlock-1, reflow-style-1, yj_jpegxr_sd-1
Metadata: ASIN=B0DNG6SS4P, asset_id=CR!8TZW12046N18S4SPFENX2VHJ88ER, author="Baxley Jr, William Kyle", book_id=Fykth6T4TqeWlxFOo9Jf4Q0, cde_content_type=EBOK, content_id=B0DNG6SS4P, cover_image=665x998, creator_version=2.15.0, file_creator=YJConversionTools, is_sample=False, issue_date=2024-12-07, kfxgen=20.12.238.0, language=en, max_id=834, min_kindle_version=5.6.5, nested_span=enabled, pages=272, publisher=, reading_orders=1, selection=enabled, title="The Jeweler's Secret (The Eternal Craft Book 1)"
Package KFX (from KFX Input): Imported as KFX
KFX metadata reader (from KFX Input) activated for /tmp/calibre-q9wdi1w6/ok3msaz6_add_books/0/The Jeweler's Secret (The Eternal Craft Book 1)_B0DNG6SS4P.kfx
Added The Jeweler's Secret (The Eternal Craft Book 1) to db in: 0.3
Added 1 books in 2.1 seconds
DEBUG: 51.7 DeviceJob: set_books_in_library: books to process= 88
DEBUG: 51.7 DeviceJob: set_books_in_library finished: time= 0.01735067367553711
Job: 5 Send metadata to device started
DEBUG: 53.6 USBMS: starting sync_booklists
DEBUG: 54.3 USBMS: finished sync_booklists
DeviceJob: 5 Send metadata to device done, calling callback
DeviceJob: 5 Send metadata to device callback returned
Job: 5 Send metadata to device finished
No details available.
Worker Launch took: 0.01 seconds
Job: 6 Convert book 1 of 1 (The Jeweler's Secret (The Eternal Craft Book 1)) finished
Convert book 1 of 1 (The Jeweler's Secret (The Eternal Craft Book 1))
DeDRM v10.0.9: Trying to decrypt s3mqmugj.kfx
Unknown booktype kfx. Passing back to calibre unchanged
Conversion options changed from defaults:
expand_css: True
chapter: '/'
preserve_cover_aspect_ratio: True
margin_right: 3.0
margin_bottom: 2.0
extra_css: 'p{margin-bottom: 0em;margin-top: 0em;}\nbody{line-height: 1.2; widows: 1;\n orphans: 1; margin-left: 4pt !important;\n margin-right: 4pt !important;}'
minimum_line_height: 0.0
output_profile: 'tablet'
read_metadata_from_opf: '/tmp/calibre-q9wdi1w6/0h_vtzu1.opf'
cover: '/tmp/calibre-q9wdi1w6/4rpu0zpf.jpeg'
verbose: 2
margin_top: 4.0
margin_left: 3.0
max_toc_links: 160
allow_conversion_with_errors: True
epub_version: '3'
remove_fake_margins: False
Resolved conversion options
calibre version: 8.3.0
{'add_alt_text_to_img': False,
'allow_conversion_with_errors': True,
'asciiize': False,
'author_sort': None,
'authors': None,
'base_font_size': 0.0,
'book_producer': None,
'change_justification': 'original',
'chapter': '/',
'chapter_mark': 'pagebreak',
'comments': None,
'cover': '/tmp/calibre-q9wdi1w6/4rpu0zpf.jpeg',
'debug_pipeline': None,
'dehyphenate': True,
'delete_blank_paragraphs': True,
'disable_font_rescaling': False,
'dont_split_on_page_breaks': False,
'duplicate_links_in_toc': False,
'embed_all_fonts': False,
'embed_font_family': None,
'enable_heuristics': False,
'epub_flatten': False,
'epub_inline_toc': False,
'epub_max_image_size': 'none',
'epub_toc_at_end': False,
'epub_version': '3',
'expand_css': True,
'extra_css': 'p{margin-bottom: 0em;margin-top: 0em;}\n'
'body{line-height: 1.2; widows: 1;\n'
' orphans: 1; margin-left: 4pt !important;\n'
' margin-right: 4pt !important;}',
'extract_to': None,
'filter_css': '',
'fix_indents': True,
'flow_size': 260,
'font_size_mapping': None,
'format_scene_breaks': True,
'html_unwrap_factor': 0.4,
'input_encoding': None,
'input_profile': <calibre.customize.profiles.InputProfile object at 0x717294f54e50>,
'insert_blank_line': False,
'insert_blank_line_size': 0.5,
'insert_metadata': False,
'isbn': None,
'italicize_common_cases': True,
'keep_ligatures': False,
'language': None,
'level1_toc': None,
'level2_toc': None,
'level3_toc': None,
'line_height': 0.0,
'linearize_tables': False,
'margin_bottom': 2.0,
'margin_left': 3.0,
'margin_right': 3.0,
'margin_top': 4.0,
'markup_chapter_headings': True,
'max_toc_links': 160,
'minimum_line_height': 0.0,
'no_chapters_in_toc': False,
'no_default_epub_cover': False,
'no_inline_navbars': False,
'no_svg_cover': False,
'output_profile': <calibre.customize.profiles.TabletOutput object at 0x717294ce69d0>,
'page_breaks_before': '/',
'prefer_metadata_cover': False,
'preserve_cover_aspect_ratio': True,
'pretty_print': True,
'pubdate': None,
'publisher': None,
'rating': None,
'read_metadata_from_opf': '/tmp/calibre-q9wdi1w6/0h_vtzu1.opf',
'remove_fake_margins': False,
'remove_first_image': False,
'remove_paragraph_spacing': False,
'remove_paragraph_spacing_indent_size': 1.5,
'renumber_headings': True,
'replace_scene_breaks': '',
'search_replace': '[]',
'series': None,
'series_index': None,
'smarten_punctuation': False,
'sr1_replace': None,
'sr1_search': None,
'sr2_replace': None,
'sr2_search': None,
'sr3_replace': None,
'sr3_search': None,
'start_reading_at': None,
'subset_embedded_fonts': False,
'tags': None,
'timestamp': None,
'title': None,
'title_sort': None,
'toc_filter': None,
'toc_threshold': 6,
'toc_title': None,
'transform_css_rules': '[]',
'transform_html_rules': '[]',
'unsmarten_punctuation': False,
'unwrap_lines': True,
'use_auto_toc': False,
'verbose': 2}
DeDRM v10.0.9: Trying to decrypt s3mqmugj.kfx
Unknown booktype kfx. Passing back to calibre unchanged
InputFormatPlugin: KFX Input running
on /tmp/calibre-q9wdi1w6/s3mqmugj.kfx
Software versions: KFX Input 2.23.0, calibre 8.3, Linux-6.8.0-58-generic-x86_64-with-glibc2.39
KFX Input plugin help is available at https://www.mobileread.com/forums/showthread.php?t=291290
Converting /tmp/calibre-q9wdi1w6/s3mqmugj.kfx
Processing container: /tmp/calibre-q9wdi1w6/s3mqmugj.kfx
Features: CanonicalFormat-2, kfxgen.positionMaps-2, kfxgen.textBlock-1, reflow-style-1, yj_jpegxr_sd-1
Metadata: ASIN=B0DNG6SS4P, asset_id=CR!8TZW12046N18S4SPFENX2VHJ88ER, author="Baxley Jr, William Kyle", book_id=Fykth6T4TqeWlxFOo9Jf4Q0, cde_content_type=EBOK, content_id=B0DNG6SS4P, cover_image=665x998, creator_version=2.15.0, file_creator=YJConversionTools, is_sample=False, issue_date=2024-12-07, kfxgen=20.12.238.0, language=en, max_id=834, min_kindle_version=5.6.5, nested_span=enabled, pages=272, publisher=, reading_orders=1, selection=enabled, title="The Jeweler's Secret (The Eternal Craft Book 1)"
Converting book to EPUB 3
Successfully converted kfx to EPUB -- running EPUB input plugin
Found HTML cover OEBPS/c0.xhtml
KFX Input plugin processing complete
Parsing all content...
Parsing OEBPS/c12.xhtml ...
Parsing OEBPS/c1GP.xhtml ...
Parsing OEBPS/c22T.xhtml ...
Parsing OEBPS/cH8.xhtml ...
Parsing OEBPS/cA7.xhtml ...
Parsing OEBPS/c1SX.xhtml ...
Parsing OEBPS/c91.xhtml ...
Parsing OEBPS/cVU.xhtml ...
Parsing OEBPS/cZE.xhtml ...
Parsing OEBPS/nav.xhtml ...
Parsing OEBPS/cYA.xhtml ...
Parsing OEBPS/cVE.xhtml ...
Parsing OEBPS/cC5.xhtml ...
Parsing OEBPS/c1P5.xhtml ...
Parsing OEBPS/c26H.xhtml ...
Parsing OEBPS/cJM.xhtml ...
Parsing OEBPS/c139.xhtml ...
Parsing OEBPS/c13Y.xhtml ...
Parsing OEBPS/cKJ.xhtml ...
Parsing OEBPS/cBJ.xhtml ...
Parsing OEBPS/c1DJ.xhtml ...
Parsing OEBPS/c215.xhtml ...
Parsing OEBPS/cRD.xhtml ...
Parsing OEBPS/c1EJ.xhtml ...
Parsing OEBPS/c0.xhtml ...
Parsing OEBPS/c1FB.xhtml ...
Parsing OEBPS/cY0.xhtml ...
Parsing OEBPS/cCS.xhtml ...
Parsing OEBPS/c1B0.xhtml ...
Parsing OEBPS/c127.xhtml ...
Parsing OEBPS/c1VN.xhtml ...
Parsing OEBPS/c1XT.xhtml ...
Parsing OEBPS/c1MJ.xhtml ...
Parsing OEBPS/c260.xhtml ...
Parsing OEBPS/cDM.xhtml ...
Parsing OEBPS/cJ9.xhtml ...
Parsing OEBPS/cTZ.xhtml ...
Parsing OEBPS/cUR.xhtml ...
Parsing OEBPS/c1C9.xhtml ...
Parsing OEBPS/c2R.xhtml ...
Parsing OEBPS/c2G.xhtml ...
Parsing OEBPS/cFH.xhtml ...
Parsing OEBPS/cEA.xhtml ...
Parsing OEBPS/c1KD.xhtml ...
Parsing OEBPS/cMB.xhtml ...
Parsing OEBPS/c24Z.xhtml ...
Parsing OEBPS/c18P.xhtml ...
Parsing OEBPS/c15P.xhtml ...
Parsing OEBPS/cU5.xhtml ...
Parsing OEBPS/cJ3.xhtml ...
Parsing OEBPS/cT.xhtml ...
Parsing OEBPS/c19G.xhtml ...
Parsing OEBPS/c10B.xhtml ...
Parsing OEBPS/c1CS.xhtml ...
Parsing OEBPS/c1HN.xhtml ...
Parsing OEBPS/c23E.xhtml ...
Parsing OEBPS/c4K.xhtml ...
Parsing OEBPS/c43.xhtml ...
Parsing OEBPS/c1RV.xhtml ...
Parsing OEBPS/cXT.xhtml ...
Parsing OEBPS/stylesheet.css ...
Parsing OEBPS/cX5.xhtml ...
Parsing OEBPS/c1NJ.xhtml ...
Parsing OEBPS/c269.xhtml ...
Parsing OEBPS/cK0.xhtml ...
Parsing OEBPS/c6T.xhtml ...
Parsing OEBPS/cN9.xhtml ...
Parsing OEBPS/c153.xhtml ...
Parsing OEBPS/c17Z.xhtml ...
Parsing OEBPS/c12S.xhtml ...
Parsing OEBPS/c1G5.xhtml ...
Parsing OEBPS/c66.xhtml ...
Parsing OEBPS/cZV.xhtml ...
Parsing OEBPS/cPJ.xhtml ...
Parsing OEBPS/c1TV.xhtml ...
Parsing OEBPS/c1BM.xhtml ...
Parsing OEBPS/c113.xhtml ...
Parsing OEBPS/c1YS.xhtml ...
Parsing OEBPS/c7F.xhtml ...
Parsing OEBPS/c1KU.xhtml ...
Parsing OEBPS/c7P.xhtml ...
Parsing OEBPS/c25K.xhtml ...
Parsing OEBPS/cSR.xhtml ...
Parsing OEBPS/cWS.xhtml ...
Parsing OEBPS/cW7.xhtml ...
Parsing OEBPS/cS3.xhtml ...
Parsing OEBPS/c1WS.xhtml ...
Parsing OEBPS/c8J.xhtml ...
Parsing OEBPS/c9.xhtml ...
Parsing OEBPS/c1K7.xhtml ...
Parsing OEBPS/c24B.xhtml ...
Parsing OEBPS/c176.xhtml ...
Parsing OEBPS/c10H.xhtml ...
Parsing OEBPS/c16Z.xhtml ...
Parsing OEBPS/c1UV.xhtml ...
Parsing OEBPS/c14E.xhtml ...
Parsing OEBPS/c220.xhtml ...
Parsing OEBPS/cYS.xhtml ...
Reading TOC from NCX...
Merging user specified metadata...
Detecting structure...
Flattening CSS and remapping font sizes...
Source base font size is 12.00000pt
Cleaning up manifest...
Trimming unused files from manifest...
Trimming 'OEBPS/nav.xhtml' from manifest
Trimming 'OEBPS/toc.ncx' from manifest
Trimming 'OEBPS/c0.xhtml' from manifest
Creating EPUB Output...
Splitting markup on page breaks and flow limits, if any...
Looking for large trees in OEBPS/c12.xhtml...
No large trees found
Looking for large trees in OEBPS/c1GP.xhtml...
No large trees found
Looking for large trees in OEBPS/c22T.xhtml...
No large trees found
Looking for large trees in OEBPS/cH8.xhtml...
No large trees found
Looking for large trees in OEBPS/cA7.xhtml...
No large trees found
Looking for large trees in OEBPS/c1SX.xhtml...
No large trees found
Looking for large trees in OEBPS/c91.xhtml...
No large trees found
Looking for large trees in OEBPS/cVU.xhtml...
No large trees found
Looking for large trees in OEBPS/cZE.xhtml...
No large trees found
Looking for large trees in OEBPS/cYA.xhtml...
No large trees found
Looking for large trees in OEBPS/cVE.xhtml...
No large trees found
Looking for large trees in OEBPS/cC5.xhtml...
No large trees found
Looking for large trees in OEBPS/c1P5.xhtml...
No large trees found
Looking for large trees in OEBPS/c26H.xhtml...
No large trees found
Looking for large trees in OEBPS/cJM.xhtml...
No large trees found
Looking for large trees in OEBPS/c139.xhtml...
No large trees found
Looking for large trees in OEBPS/c13Y.xhtml...
No large trees found
Looking for large trees in OEBPS/cKJ.xhtml...
No large trees found
Looking for large trees in OEBPS/cBJ.xhtml...
No large trees found
Looking for large trees in OEBPS/c1DJ.xhtml...
No large trees found
Looking for large trees in OEBPS/c215.xhtml...
No large trees found
Looking for large trees in OEBPS/cRD.xhtml...
No large trees found
Looking for large trees in OEBPS/c1EJ.xhtml...
No large trees found
Looking for large trees in OEBPS/c1FB.xhtml...
No large trees found
Looking for large trees in OEBPS/cY0.xhtml...
No large trees found
Looking for large trees in OEBPS/cCS.xhtml...
No large trees found
Looking for large trees in OEBPS/c1B0.xhtml...
No large trees found
Looking for large trees in OEBPS/c127.xhtml...
No large trees found
Looking for large trees in OEBPS/c1VN.xhtml...
No large trees found
Looking for large trees in OEBPS/c1XT.xhtml...
No large trees found
Looking for large trees in OEBPS/c1MJ.xhtml...
No large trees found
Looking for large trees in OEBPS/c260.xhtml...
No large trees found
Looking for large trees in OEBPS/cDM.xhtml...
No large trees found
Looking for large trees in OEBPS/cJ9.xhtml...
No large trees found
Looking for large trees in OEBPS/cTZ.xhtml...
No large trees found
Looking for large trees in OEBPS/cUR.xhtml...
No large trees found
Looking for large trees in OEBPS/c1C9.xhtml...
No large trees found
Looking for large trees in OEBPS/c2R.xhtml...
No large trees found
Looking for large trees in OEBPS/c2G.xhtml...
No large trees found
Looking for large trees in OEBPS/cFH.xhtml...
No large trees found
Looking for large trees in OEBPS/cEA.xhtml...
No large trees found
Looking for large trees in OEBPS/c1KD.xhtml...
No large trees found
Looking for large trees in OEBPS/cMB.xhtml...
No large trees found
Looking for large trees in OEBPS/c24Z.xhtml...
No large trees found
Looking for large trees in OEBPS/c18P.xhtml...
No large trees found
Looking for large trees in OEBPS/c15P.xhtml...
No large trees found
Looking for large trees in OEBPS/cU5.xhtml...
No large trees found
Looking for large trees in OEBPS/cJ3.xhtml...
No large trees found
Looking for large trees in OEBPS/cT.xhtml...
No large trees found
Looking for large trees in OEBPS/c19G.xhtml...
No large trees found
Looking for large trees in OEBPS/c10B.xhtml...
No large trees found
Looking for large trees in OEBPS/c1CS.xhtml...
No large trees found
Looking for large trees in OEBPS/c1HN.xhtml...
No large trees found
Looking for large trees in OEBPS/c23E.xhtml...
No large trees found
Looking for large trees in OEBPS/c4K.xhtml...
No large trees found
Looking for large trees in OEBPS/c43.xhtml...
No large trees found
Looking for large trees in OEBPS/c1RV.xhtml...
No large trees found
Looking for large trees in OEBPS/cXT.xhtml...
No large trees found
Looking for large trees in OEBPS/cX5.xhtml...
No large trees found
Looking for large trees in OEBPS/c1NJ.xhtml...
No large trees found
Looking for large trees in OEBPS/c269.xhtml...
No large trees found
Looking for large trees in OEBPS/cK0.xhtml...
No large trees found
Looking for large trees in OEBPS/c6T.xhtml...
No large trees found
Looking for large trees in OEBPS/cN9.xhtml...
No large trees found
Looking for large trees in OEBPS/c153.xhtml...
No large trees found
Looking for large trees in OEBPS/c17Z.xhtml...
No large trees found
Looking for large trees in OEBPS/c12S.xhtml...
No large trees found
Looking for large trees in OEBPS/c1G5.xhtml...
No large trees found
Looking for large trees in OEBPS/c66.xhtml...
No large trees found
Looking for large trees in OEBPS/cZV.xhtml...
No large trees found
Looking for large trees in OEBPS/cPJ.xhtml...
No large trees found
Looking for large trees in OEBPS/c1TV.xhtml...
No large trees found
Looking for large trees in OEBPS/c1BM.xhtml...
No large trees found
Looking for large trees in OEBPS/c113.xhtml...
No large trees found
Looking for large trees in OEBPS/c1YS.xhtml...
No large trees found
Looking for large trees in OEBPS/c7F.xhtml...
No large trees found
Looking for large trees in OEBPS/c1KU.xhtml...
No large trees found
Looking for large trees in OEBPS/c7P.xhtml...
No large trees found
Looking for large trees in OEBPS/c25K.xhtml...
No large trees found
Looking for large trees in OEBPS/cSR.xhtml...
No large trees found
Looking for large trees in OEBPS/cWS.xhtml...
No large trees found
Looking for large trees in OEBPS/cW7.xhtml...
No large trees found
Looking for large trees in OEBPS/cS3.xhtml...
No large trees found
Looking for large trees in OEBPS/c1WS.xhtml...
No large trees found
Looking for large trees in OEBPS/c8J.xhtml...
No large trees found
Looking for large trees in OEBPS/c9.xhtml...
No large trees found
Looking for large trees in OEBPS/c1K7.xhtml...
No large trees found
Looking for large trees in OEBPS/c24B.xhtml...
No large trees found
Looking for large trees in OEBPS/c176.xhtml...
No large trees found
Looking for large trees in OEBPS/c10H.xhtml...
No large trees found
Looking for large trees in OEBPS/c16Z.xhtml...
No large trees found
Looking for large trees in OEBPS/c1UV.xhtml...
No large trees found
Looking for large trees in OEBPS/c14E.xhtml...
No large trees found
Looking for large trees in OEBPS/c220.xhtml...
No large trees found
Looking for large trees in OEBPS/cYS.xhtml...
No large trees found
Upgrading to EPUB 3...
EPUB output written to /tmp/calibre-q9wdi1w6/1h1efdd5.epub
bernie
Quote:
Originally Posted by hobnail
Is anyone else having random problems with drm removal using DeDRM? Calibre is 8.3.0, DeDRM is the alpha available from their github page (dated November 2024). Same problem with 10.0.9. The KFX input plugin is 2.23.0.
The following link is to a book that was free by way of ereaderiq.com; dunno if it's still free. When I drag it into calibre the author shows as Unknown. Trying to convert it to EPUB gives me an error saying it's locked by DRM.
Odd. I tried downloading this book 4 different ways. Using K4PC and K4A worked though the book file sizes and cover resolutions were different. Using a Kindle PW4, clicking on the book in /documents/Downloads/Items01 worked. Copying the single file from the PW4 failed and gave a KFX-ZIP file which is kind of expected since most of the ebook is in the .sdr directory associated with the ebook. As usual, the cover was lower resolution and B&W for the PW3 version.
Odd. I tried downloading this book 4 different ways. Using K4PC and K4A worked though the book file sizes and cover resolutions were different. Using a Kindle PW4, clicking on the book in /documents/Downloads/Items01 worked. Copying the single file from the PW4 failed and gave a KFX-ZIP file which is kind of expected since most of the ebook is in the .sdr directory associated with the ebook. As usual, the cover was lower resolution and B&W for the PW3 version.
Does Kindle for Android give the full size images and in color if they are in color?
I went back and deleted it from my kindle using their Content page, sent it to my Kindle again, and then copied it to my library from within calibre and this time it worked. No idea what was going on last night since I'm pretty sure I did that last night as well.
I don't know because this is Amazon who love to play games with the graphics.
Still doesn't really explain why you expected a B&W image to be delivered to devices that, other than a few rare exceptions, have a colour display. Amazon may play games with graphics by trying to suit them to the device display but I have never heard of them sending a colour image to a colour device in B&W. The ColorSoft gets its cover images in colour, for instance.
Hmmm... playing Making It Work from the Doug and The Slugs' album Music for the Hard of Thinking.