03-10-2019, 09:57 AM | #496 |
Junior Member
Posts: 4
Karma: 9234
Join Date: Mar 2019
Device: kindle 7th gen
|
I'm at 10.14.3 (18D109). Calibre 3.40.1. DeDRM version 6.6.1. Kindle 1.25.2 Last updated on 1/1/2019.
I just rechecked the whole thing. If I set chmod -x ./renderer-test, then I get a single file azw (for some books there are apnx, phl and mbpV2 files) but I'm able to import into calibre and read them. If it's +x then its a no-go. However I just checked on another mac, which never had kindle for mac installed and synced to a different amazon account and setting -x did not help. Even though it downloads single-file azw and calibre can read the metadata, I cannot open and read the book. This was K4M 1.25.2 and DeDRM 6.6.2 I have a suspicion that since I set -x on K4M 1.23 and then let it update to 1.25, I just got lucky. |
03-10-2019, 10:46 AM | #497 |
Member
Posts: 15
Karma: 260
Join Date: Jun 2018
Device: none
|
That suggests something. (I don't have a Mac to test, so it is purely a guess on my part.)
Try creating a file named renderer-test in the K4M directory on the "new" Mac and make sure it is non-executable. It might fool the program... |
Advert | |
|
03-10-2019, 04:07 PM | #498 |
just an egg
Posts: 1,587
Karma: 4300000
Join Date: Mar 2015
Device: Kindle, iOS
|
To skip the discussion and go straight to the solution for getting Alf-friendly KF8 out of Kindle for Mac 1.25.2, see this post:
https://www.mobileread.com/forums/sh...&postcount=508 - - - - - - - - - - - - - - - This is getting more and more fascinating. Today, I was able to capture the azw file, and it is indeed KF8/azw3. What's more, it can be liberated by Alf. Further experiments suggest that K4Mac 1.25.2 cannot read KF8. It can only read KFX and KCR, and when it encounters KF8, it automatically replaces it with KCR. But, if you're fast enough, you can use K4Mac 1.25.2 to get a KF8 file that works with Alf. The question is how legitimateliv was able to prevent 1.25.2 from downloading the KCR file and deleting the initial KF8 file (which has an azw extension) replacing the initial KF8 file (which has an azw extension) with a KCR file. Details of what I did: 1) Clean install K4Mac 1.23.1 - Download a few ebooks, which all arrive as KFX (with the generic .azw file extension) - Use chmod -x to make renderer-test non-executable - Delete ebooks and re-download - Re-downloaded books arrive in KF8 format with generic .azw file extension - Alf successfully liberates re-downloaded KF8 files 2) Allow K4Mac 1.23.1 to update to 1.25.2 - Try to open ebooks previously downloaded by 1.23.1 (which are in KF8 format because renderer-test had been disabled per above). Pop-up window appears saying "Preparing your book ..." Go to My Kindle Content folder and find that the .azw/KF8 files have been replaced with .kcr files, which can now be opened and read - Download a few additional ebooks. These all arrive as KFX (with the generic .azw file extension) - Use chmod -x to make renderer-test non-executable - Delete ebooks and re-download - The first file that appears has an .azw extension. This is quickly followed by a .kcr file, then the .azw file is deleted - Quickly, before the .azw file is deleted, drag it to the desktop. (Note: I checked the Trash bin to see if the deleted .azw file ends up there, but sadly no. So it's not as easy as retrieving the file from Trash) - Alf successfully liberates the .azw file dragged to the desktop, which turns out to be KF8 3) Clean install K4Mac 1.25.2 - Same thing happens with clean install of K4Mac 1.25.2 as when you start with 1.23.1 and allow it to update Additional tests: - Put unliberated .azw/KF8 file that was dragged to the desktop back in My Kindle Content folder and delete the .kcr file. Try to open ebook. K4Mac says "Preparing your book ..." downloads a .kcr and deletes the .azw file and replaces the .azw file with a .kcr file - Go to .azw/KF8 file that was dragged to the desktop and try to open it directly from the desktop using "Open with ..." command and choose K4Mac 1.25.2. Same thing happens: K4Mac "updates" it by downloading a .kcr and deleting the .azw file replaces the .azw file with a .kcr It does seem that K4Mac 1.25.2 cannot read KF8, and when it encounters one, it automatically replaces it with a KCR file. And yet, if you use chmod -x to disable renderer-test to prevent KFX, K4Mac 1.25.2 will download a KF8 file (with a generic .azw extension), and if you're fast enough, you can drag it to your desktop before it disappears and liberate it with Alf. Now we need to figure out how to prevent K4Mac from deleting the initial .azw and downloading replacing it with a .kcr — which seems to be happening on legitimateliv's Mac. There is already a file named renderer-test. The chmod -x command doesn't delete it, it makes it non-executable. Last edited by odamizu; 03-14-2019 at 08:34 AM. Reason: new info, corrections |
03-10-2019, 06:21 PM | #499 | |
Grand Sorcerer
Posts: 6,507
Karma: 84500001
Join Date: Nov 2011
Location: Tampa Bay, Florida
Device: Kindles
|
Quote:
Hopefully someone can come up with a method of blocking the KCR file download. That would provide a path forward with Kindle for Mac for those who plan to upgrade to a 64-bit only OS. ------ I have a suggestion of something you could try. Perhaps the file is downloaded normally and only replaced when you attempt to open it. On Kindle for PC double clicking a book icon causes it to be both downloaded and opened, but right clicking and selecting "Download" causes a download only. I assume Kindle for Mac works similarly. Last edited by jhowell; 03-10-2019 at 06:33 PM. |
|
03-10-2019, 08:38 PM | #500 | |
just an egg
Posts: 1,587
Karma: 4300000
Join Date: Mar 2015
Device: Kindle, iOS
|
Quote:
Your hypothesis was spot-on. Right-clicking and selecting "Download" triggers a KF8 file (with the generic extension .azw) to download without opening the book and without triggering a KCR to follow and replace it. Whereas double-clicking causes a KF8 to download (if it hasn't already been downloaded), immediately followed by a KCR, then the KF8 is deleted and the book opens. Mac users can now use the 64-bit K4Mac 1.25.2 to download an Alf-friendly KF8 (with .azw file extension) by using chmod -x to disable renderer-test then right-clicking and selecting "Download." It is imperative that one not double-click and open the book as that will delete the Alf-friendly KF8 and replace it with a not-friendly-to-Alf KCR. For complete instructions see this post: https://www.mobileread.com/forums/sh...&postcount=508 Last edited by odamizu; 03-13-2019 at 02:18 PM. |
|
Advert | |
|
03-10-2019, 11:53 PM | #501 | |
Grand Sorcerer
Posts: 6,507
Karma: 84500001
Join Date: Nov 2011
Location: Tampa Bay, Florida
Device: Kindles
|
Quote:
I still find it odd that the program downloads a KF8 file and then later downloads the same book as KCR. Is it possible that the first is actually being converted into the second? One way to test that would be to download a book and then disable your Internet connection before you try to open it. |
|
03-11-2019, 01:56 AM | #502 | |
just an egg
Posts: 1,587
Karma: 4300000
Join Date: Mar 2015
Device: Kindle, iOS
|
Quote:
I downloaded a book without opening it, and got an .azw/KF8. I then disconnected from the Internet and opened the book. A few seconds later the KF8 disappeared and a .kcr appeared. Since my Internet was disconnected, it obviously wasn't downloaded. This all makes so much more sense now. When KFX is blocked using chmod -x to disable renderer-test, K4Mac 1.25.2 downloads a KF8, then when you go to open the book, it converts it to KCR. The question is why has Amazon switched from KF8 to KCR as the alternate format when KFX is blocked? Also, whenever I close 1.25.2, it crashes with a "Quit Unexpectedly" warning. I'm guessing this is because I disabled renderer-test. This doesn't happen with 1.23.1. Last edited by odamizu; 03-11-2019 at 11:32 PM. |
|
03-11-2019, 05:31 AM | #503 |
Junior Member
Posts: 4
Karma: 9234
Join Date: Mar 2019
Device: kindle 7th gen
|
This make sense. When I first reported this, I was using a keyboard macro mapped to "File > Download" menu item in the K4M app, so it was only downloading (and not opening) an azw/kf8 file and not the kcr file.
I can also reproduce everything mentioned in this thread. With -x, right click download gets an azw file which Alf can deal with. Double click gets a kcr file which Alf can't. With +x, everything is useless. |
03-11-2019, 12:58 PM | #504 |
Grand Sorcerer
Posts: 6,507
Karma: 84500001
Join Date: Nov 2011
Location: Tampa Bay, Florida
Device: Kindles
|
I updated the first post in this thread to link to the new information by odamizu for getting Method 2 working with the latest Kindle for Mac.
|
03-11-2019, 01:31 PM | #505 |
just an egg
Posts: 1,587
Karma: 4300000
Join Date: Mar 2015
Device: Kindle, iOS
|
@legitimateliv: Does your K4Mac 1.25.2 crash with a "Kindle quit unexpectedly" error message every time you close it? Thanks
Last edited by odamizu; 03-11-2019 at 01:43 PM. |
03-11-2019, 02:08 PM | #506 | |
just an egg
Posts: 1,587
Karma: 4300000
Join Date: Mar 2015
Device: Kindle, iOS
|
Kindle for Mac 1.25 thru 1.31
Quote:
Last edited by odamizu; 02-28-2023 at 02:21 AM. |
|
03-11-2019, 02:38 PM | #507 |
Junior Member
Posts: 4
Karma: 9234
Join Date: Mar 2019
Device: kindle 7th gen
|
|
03-11-2019, 03:20 PM | #508 |
just an egg
Posts: 1,587
Karma: 4300000
Join Date: Mar 2015
Device: Kindle, iOS
|
Thanks. I'll probably stick with 1.23.1, then. Though it's good to know that if necessary, it's possible to get Alf-friendly KF8 from 1.25.2.
P.S. I restored renderer-test using chmod +x and 1.25.2 immediately stopped crashing on quit, so it's definitely due to this modification. Last edited by odamizu; 03-13-2019 at 12:49 AM. |
03-11-2019, 05:20 PM | #509 |
Grand Sorcerer
Posts: 6,507
Karma: 84500001
Join Date: Nov 2011
Location: Tampa Bay, Florida
Device: Kindles
|
OK. I have updated the first post and linked it to you new post.
|
03-17-2019, 07:04 PM | #510 |
Junior Member
Posts: 2
Karma: 10
Join Date: Mar 2019
Device: Amazon
|
I have tried both 1.23.1 and 1.25.2 with the 'renderer-test' workaround and no matter what I get the .azw / .res / .md files. I never see any other files appear first and this is with using the right-click download method.
Suggestions? Update: Even though I received no errors in Terminal I had to run the renderer-test chmod command with sudo. Seems to have worked as expected after that, at least on 1.23.1 Last edited by anon_me; 03-17-2019 at 10:03 PM. |
Tags |
k4pc, kindle for pc |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Handling KFX files in Calibre | HarryT | Conversion | 53 | 08-31-2018 03:21 AM |
Dealing with Kindle for PC/Mac 1.19 and KFX in calibre | BetterRed | Conversion | 0 | 02-08-2017 12:47 PM |
Dealing with Kindle for PC/Mac 1.19 and KFX in calibre | BetterRed | Devices | 0 | 02-06-2017 06:59 PM |
updated calibre with a little help for kfx format | cvkemp | Amazon Kindle | 0 | 10-06-2015 10:08 AM |
Dealing with Multiple Calibre libraries | samoanbiscuit | Calibre Companion | 4 | 08-27-2014 09:35 AM |