apprenticeharper / DeDRM_tools

DeDRM tools for ebooks
14.56k stars 1.52k forks source link

DRM not removed on import #1746

Open camazotzz opened 3 years ago

camazotzz commented 3 years ago

I did as was asked in the troubleshooting part of the readme file calibre debug.txt I downloaded the mac version of kindle ver 1.31.0 and then downloaded the book I bought, then located the azw file. I installed the latest deDRM plug in and the KFX plug in in calibre 5.21 and it was successful so i imported my book, when I tried to convert to PDF it said it was still DRM'd what should I do? I'm on a hackintosh running mojave 10.14.6 help much appreciated, Cama

ElleKayEm commented 3 years ago

Either avoid KFX format. Or use Kindle for Mac 1.26 or earlier. See this post for details: https://www.mobileread.com/forums/showthread.php?t=283371

camazotzz commented 3 years ago

I seemed to have finally got the book downloaded without KFX (Calibre registered it as regular AZW) but still getting the DRM notice when I try to convert it. I tried kindle 1.26.1 1.20 and 1.17 all seemed to produce kfx, the thing that seemed to remoove kfx was the sudo command in the link you provided. I removed the KFX plug in and not only have deDRM plugin on Calibre 5.22 debug2.txt

infidelus commented 3 years ago

Also having problems with DRM removal for the last couple of Calibre updates. It was working perfectly until probably a month ago but now Calibre keeps popping up with a DRM warning.

I'm currently using Kindle for PC 1.16 on Linux Mint via wine and the ebooks are all in azw format. I've also tried version 1.31. I've rolled back as far as Calibre 5.19 but the DRM problem persists.

ElleKayEm commented 3 years ago

@camazotzz DeDRM 7.2.1 has trouble initially retrieving the Kindle for Mac key. Try using calibre 4.23 and DeDRM 6.8.1. If that's successful, you should be able to go back to your current version of calibre and DeDRM.

ElleKayEm commented 3 years ago

@infidelus AZW extension could still be KFX format. Make sure you've disabled KFX downloads or use Kindle for PC 1.26 or earlier.

Getting the key can be tricky in Linux. You may need to run the kindlekey script under wine and import the key. Or you may find it easier to temporarily install Windows calibre with DeDRM under wine, decrypt a book, save the key, and import the key into Linux calibre's DeDRM customization.

infidelus commented 3 years ago

Thanks @ElleKayEm.

I've looked through the Kindle options and can't see anywhere to enable/disable KFX downloads. That doesn't mean I'm not just blind though.

For clarity, I've tried two different versions of Kindle for PC with the same result; 1.16 and 1.31, and downloaded the ebooks via both versions to test.

I already have my Kindle key installed in DeDRM. I have Calibre set up on my Unraid server in a docker container and, until around a month ago, it was working perfectly. The kindlekey still shows in the settings. As for how to get it, I have a Windows VM set up on my PC and installed Kindle for PC on there when I was setting up DeDRM.

image

ElleKayEm commented 3 years ago

@infidelus Sorry the info on avoiding KFX was in a link I posted earlier in this thread: https://www.mobileread.com/forums/showthread.php?t=283371

Are books and key from the same installation of Kindle for PC? Re-installing different versions will change the key.

camazotzz commented 3 years ago

DeDRM 7.2.1 has trouble initially retrieving the Kindle for Mac key. Try using calibre 4.23 and DeDRM 6.8.1. If that's successful, you should be able to go back to your current version of calibre and DeDRM.

Thanks @ElleKayEm, this worked! I have the pdf I needed in hand! I deleted calibre 5.22 and deleted its system files in user/library/application support, then I installed calibre 4.23, then installed deDRM 6.8.1. I imported my book which is presumably free of KFX and converted it to pdf.

infidelus commented 3 years ago

Thanks again @ElleKayEm. Apologies, I should have read that mobileread link before asking about the KFX file.

Problem solved though. There was an issue recently with the Kindle software not connecting which turned out to be something do do with a dodgy Symantec Certificate. I resolved it after a bit of googling, but not until I'd deleted and reinstalled my wine version of KfPC multiple times.

It didn't click until you mentioned new install - new key. Thanks :)

luigirovatti commented 3 years ago

If you download via the button "Transfer via USB" on "My Contents and Devices" on your Amazon account page, if you have an e-ink book associated with it, it won't work always. Download older versions of Kindle for PC (like 1.16), then log-in with your Amazon account, then disable KFX format (dunno how, look in "Options"), download it, and go to "Documents/My Kindle Content" and move the file to Calibre. The key, I assure you, WILL be recognized this way.

ElleKayEm commented 3 years ago

If you download via the button "Transfer via USB" on "My Contents and Devices" on your Amazon account page, if you have an e-ink book associated with it, it won't work always.

This will work if you have entered the E-ink Kindle's serial number into DeDRM's customization.

Download older versions of Kindle for PC (like 1.16), then log-in with your Amazon account, then disable KFX format (dunno how, look in "Options"), download it, and go to "Documents/My Kindle Content" and move the file to Calibre. The key, I assure you, WILL be recognized this way.

You do not have to worry about KFX with Kindle for PC 1.17 (the oldest version which currently works). KFX format downloaded with Kindle for PC 1.26 and earlier can be decrypted. I don't know what you are referring to when you suggest looking in "Options". To disable KFX downloads on version 1.19 and up of Kindle for PC, see method 2 at this link: https://www.mobileread.com/forums/showthread.php?t=283371