Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 03-10-2019, 09:57 AM   #496
legitimateliv
Junior Member
legitimateliv can eat soup with a fork.legitimateliv can eat soup with a fork.legitimateliv can eat soup with a fork.legitimateliv can eat soup with a fork.legitimateliv can eat soup with a fork.legitimateliv can eat soup with a fork.legitimateliv can eat soup with a fork.legitimateliv can eat soup with a fork.legitimateliv can eat soup with a fork.legitimateliv can eat soup with a fork.legitimateliv can eat soup with a fork.
 
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.
legitimateliv is offline   Reply With Quote
Old 03-10-2019, 10:46 AM   #497
bkennelly
Member
bkennelly has a complete set of Star Wars action figures.bkennelly has a complete set of Star Wars action figures.bkennelly has a complete set of Star Wars action figures.
 
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...
bkennelly is offline   Reply With Quote
Advert
Old 03-10-2019, 04:07 PM   #498
odamizu
just an egg
odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.
 
odamizu's Avatar
 
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.


Quote:
Originally Posted by bkennelly View Post
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...
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
odamizu is offline   Reply With Quote
Old 03-10-2019, 06:21 PM   #499
jhowell
Grand Sorcerer
jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.
 
jhowell's Avatar
 
Posts: 6,507
Karma: 84500001
Join Date: Nov 2011
Location: Tampa Bay, Florida
Device: Kindles
Quote:
Originally Posted by odamizu View Post
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.
Great work!

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.
jhowell is offline   Reply With Quote
Old 03-10-2019, 08:38 PM   #500
odamizu
just an egg
odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.
 
odamizu's Avatar
 
Posts: 1,587
Karma: 4300000
Join Date: Mar 2015
Device: Kindle, iOS
Quote:
Originally Posted by jhowell View Post
... 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.
BRILLIANT!!!!!!

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.
odamizu is offline   Reply With Quote
Advert
Old 03-10-2019, 11:53 PM   #501
jhowell
Grand Sorcerer
jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.
 
jhowell's Avatar
 
Posts: 6,507
Karma: 84500001
Join Date: Nov 2011
Location: Tampa Bay, Florida
Device: Kindles
Quote:
Originally Posted by odamizu View Post
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.
That is great news!

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.
jhowell is offline   Reply With Quote
Old 03-11-2019, 01:56 AM   #502
odamizu
just an egg
odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.
 
odamizu's Avatar
 
Posts: 1,587
Karma: 4300000
Join Date: Mar 2015
Device: Kindle, iOS
Quote:
Originally Posted by jhowell View Post
... 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.
You are a genius! I did as you suggested, and that's exactly what's happening.

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.
odamizu is offline   Reply With Quote
Old 03-11-2019, 05:31 AM   #503
legitimateliv
Junior Member
legitimateliv can eat soup with a fork.legitimateliv can eat soup with a fork.legitimateliv can eat soup with a fork.legitimateliv can eat soup with a fork.legitimateliv can eat soup with a fork.legitimateliv can eat soup with a fork.legitimateliv can eat soup with a fork.legitimateliv can eat soup with a fork.legitimateliv can eat soup with a fork.legitimateliv can eat soup with a fork.legitimateliv can eat soup with a fork.
 
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.
legitimateliv is offline   Reply With Quote
Old 03-11-2019, 12:58 PM   #504
jhowell
Grand Sorcerer
jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.
 
jhowell's Avatar
 
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.
jhowell is offline   Reply With Quote
Old 03-11-2019, 01:31 PM   #505
odamizu
just an egg
odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.
 
odamizu's Avatar
 
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.
odamizu is offline   Reply With Quote
Old 03-11-2019, 02:08 PM   #506
odamizu
just an egg
odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.
 
odamizu's Avatar
 
Posts: 1,587
Karma: 4300000
Join Date: Mar 2015
Device: Kindle, iOS
Kindle for Mac 1.25 thru 1.31

Quote:
Originally Posted by jhowell View Post
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.
As Amazon is making it increasingly difficult to obtain KF8/AZW3 using K4Mac, this post is no longer being actively maintained, and the info provided may be increasingly outdated. That said, if you want to try Method 2B on K4Mac 1.25 thru 1.31 (which reportedly works for ebooks published in or before 2022, but no longer works for ebooks published starting 2023) ...
  • Apply chmod -x or sudo chmod -x (Method 2B), then download books using right-click on mouse and selecting "Download", or use menu bar "File > Download". Do NOT open the book. If you open the book, you end up with .kcr, in which case delete the book and re-download per above without opening it.

Last edited by odamizu; 02-28-2023 at 02:21 AM.
odamizu is offline   Reply With Quote
Old 03-11-2019, 02:38 PM   #507
legitimateliv
Junior Member
legitimateliv can eat soup with a fork.legitimateliv can eat soup with a fork.legitimateliv can eat soup with a fork.legitimateliv can eat soup with a fork.legitimateliv can eat soup with a fork.legitimateliv can eat soup with a fork.legitimateliv can eat soup with a fork.legitimateliv can eat soup with a fork.legitimateliv can eat soup with a fork.legitimateliv can eat soup with a fork.legitimateliv can eat soup with a fork.
 
Posts: 4
Karma: 9234
Join Date: Mar 2019
Device: kindle 7th gen
Quote:
Originally Posted by odamizu View Post
@legitimateliv: Does your K4Mac 1.25.2 crash with a "Kindle quit unexpectedly" error message every time you close it? Thanks
Most of the times, yep.
legitimateliv is offline   Reply With Quote
Old 03-11-2019, 03:20 PM   #508
odamizu
just an egg
odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.odamizu ought to be getting tired of karma fortunes by now.
 
odamizu's Avatar
 
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.
odamizu is offline   Reply With Quote
Old 03-11-2019, 05:20 PM   #509
jhowell
Grand Sorcerer
jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.
 
jhowell's Avatar
 
Posts: 6,507
Karma: 84500001
Join Date: Nov 2011
Location: Tampa Bay, Florida
Device: Kindles
Quote:
Originally Posted by odamizu View Post
@jhowell: Thanks for updating the first post with instructions for Mac users. It's actually not necessary to install 1.25.2 on top of an older version. It works with a clean install of 1.25.2 as well.
OK. I have updated the first post and linked it to you new post.
jhowell is offline   Reply With Quote
Old 03-17-2019, 07:04 PM   #510
anon_me
Junior Member
anon_me began at the beginning.
 
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.
anon_me is offline   Reply With Quote
Reply

Tags
k4pc, kindle for pc


Forum Jump

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


All times are GMT -4. The time now is 12:28 PM.


MobileRead.com is a privately owned, operated and funded community.