Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Readers > Amazon Kindle > Kindle Developer's Corner

Notices

Reply
 
Thread Tools Search this Thread
Old 12-23-2009, 10:09 AM   #196
kennyc
The Dank Side of the Moon
kennyc ought to be getting tired of karma fortunes by now.kennyc ought to be getting tired of karma fortunes by now.kennyc ought to be getting tired of karma fortunes by now.kennyc ought to be getting tired of karma fortunes by now.kennyc ought to be getting tired of karma fortunes by now.kennyc ought to be getting tired of karma fortunes by now.kennyc ought to be getting tired of karma fortunes by now.kennyc ought to be getting tired of karma fortunes by now.kennyc ought to be getting tired of karma fortunes by now.kennyc ought to be getting tired of karma fortunes by now.kennyc ought to be getting tired of karma fortunes by now.
 
kennyc's Avatar
 
Posts: 35,872
Karma: 118716293
Join Date: Sep 2009
Location: Denver, CO
Device: Kindle2; Kindle Fire
Quote:
Originally Posted by stewball View Post
I open the samples with UltraEdit, and the TPZ one's will say TPZ1 on the first line. As stated in an earlier post, the Mobi files will say BOOK MOBI in the first few lines also.

Stew


EDIT: And Ereader files are PDB.
Ultraedit rulze!

kennyc is offline   Reply With Quote
Old 12-23-2009, 12:36 PM   #197
Idoine
Which book will be next ?
Idoine knows what time it isIdoine knows what time it isIdoine knows what time it isIdoine knows what time it isIdoine knows what time it isIdoine knows what time it isIdoine knows what time it isIdoine knows what time it isIdoine knows what time it isIdoine knows what time it isIdoine knows what time it is
 
Idoine's Avatar
 
Posts: 661
Karma: 2172
Join Date: Jan 2009
Location: France
Device: Cybook Gen3 1.5, Sony PRS 600 RC, Samsung Omnia...
Yeah ! Your are the bests !
I was able to open and read one of the free downloads from Kindle4PC to Mobipocket Reader and my Cybook !
Idoine is offline   Reply With Quote
Advert
Old 12-23-2009, 02:24 PM   #198
=X=
Wizard
=X= ought to be getting tired of karma fortunes by now.=X= ought to be getting tired of karma fortunes by now.=X= ought to be getting tired of karma fortunes by now.=X= ought to be getting tired of karma fortunes by now.=X= ought to be getting tired of karma fortunes by now.=X= ought to be getting tired of karma fortunes by now.=X= ought to be getting tired of karma fortunes by now.=X= ought to be getting tired of karma fortunes by now.=X= ought to be getting tired of karma fortunes by now.=X= ought to be getting tired of karma fortunes by now.=X= ought to be getting tired of karma fortunes by now.
 
=X='s Avatar
 
Posts: 3,671
Karma: 12205348
Join Date: Mar 2008
Device: Galaxy S, Nook w/CM7
Quote:
Originally Posted by dwanthny View Post
You and I both. Just when you think you have it down they go and twist things up again.

Apparently on the kindle itself the files are the way you described them azw or tpz. Since I don't own a Kindle I don't know. I do know how they appear in Kindle for PC and for some reason they chose .prc as the extension for both topaz and azw formats.

I have actually bought a normal encrypted book and had success with the script and I downloaded a sample of a book I knew to be tpz and sure enough the script told me that it was beyond it's ability because it was tpz.
Okay I'm about to confuse you even more. MOBI and eReader are both PDB file formats which is Palm Data Base file. However the ereader convention for it's extension is PDB, they chose not to change their extension from the palm default. Mobipocket uses two extensions MOBI and PRC.

PDB are container files used by the Palm OS so there is no convention on how data is stored in each PDB file, it is dependent on the software.

As to why Amazon chose to keep one extension is because extensions don't matter. Extensions are just a name/classifications. I can see them choosing one format to reduce customer getting confused about PRC, AMZ, TPZ, AMZ1 they chose to use one extension and let the reading software determine how to handle the different formats.

=X=
=X= is offline   Reply With Quote
Old 12-23-2009, 02:45 PM   #199
kennyc
The Dank Side of the Moon
kennyc ought to be getting tired of karma fortunes by now.kennyc ought to be getting tired of karma fortunes by now.kennyc ought to be getting tired of karma fortunes by now.kennyc ought to be getting tired of karma fortunes by now.kennyc ought to be getting tired of karma fortunes by now.kennyc ought to be getting tired of karma fortunes by now.kennyc ought to be getting tired of karma fortunes by now.kennyc ought to be getting tired of karma fortunes by now.kennyc ought to be getting tired of karma fortunes by now.kennyc ought to be getting tired of karma fortunes by now.kennyc ought to be getting tired of karma fortunes by now.
 
kennyc's Avatar
 
Posts: 35,872
Karma: 118716293
Join Date: Sep 2009
Location: Denver, CO
Device: Kindle2; Kindle Fire
Quote:
Originally Posted by =X= View Post
...
As to why Amazon chose to keep one extension is because extensions don't matter. Extensions are just a name/classifications. I can see them choosing one format to reduce customer getting confused about PRC, AMZ, TPZ, AMZ1 they chose to use one extension and let the reading software determine how to handle the different formats.

=X=
Not true. In Windows that doesn't make much sense because it's the extension that drives what application opens the file.

as long as it's unique that's fine, but if it's .epub there could be any number of apps that might handle it.

That is likely WHY amazon chose to make them unique.
kennyc is offline   Reply With Quote
Old 12-23-2009, 03:24 PM   #200
uncouth
Junior Member
uncouth began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Dec 2009
Device: Kobo Forma & Aura One / Kindle Oasis 2
Tried this on my Windows 7 Ultimate 32bit laptop, and my Windows 7 Home Premium 64bit desktop - both work flawlessly giving me the ability to freely move books that I legally own across both of my e-readers. Thanks so much for your hard work, it is much appreciated!
uncouth is offline   Reply With Quote
Advert
Old 12-23-2009, 05:07 PM   #201
scottt
Junior Member
scottt began at the beginning.
 
Posts: 8
Karma: 10
Join Date: Jul 2009
Device: Kindle
I've gotten the python scripts to launch K4PC and I double click on a book & close it but I get an error message of "Failed To Determine Book Path"

mobidedrm.py and unswindle.pyw are in the ptyhon26 directory and c:\python26 is in the system path...

I think I'm real close !

What am I missing?

Novice at python
scottt is offline   Reply With Quote
Old 12-23-2009, 05:57 PM   #202
Idoine
Which book will be next ?
Idoine knows what time it isIdoine knows what time it isIdoine knows what time it isIdoine knows what time it isIdoine knows what time it isIdoine knows what time it isIdoine knows what time it isIdoine knows what time it isIdoine knows what time it isIdoine knows what time it isIdoine knows what time it is
 
Idoine's Avatar
 
Posts: 661
Karma: 2172
Join Date: Jan 2009
Location: France
Device: Cybook Gen3 1.5, Sony PRS 600 RC, Samsung Omnia...
Quote:
Originally Posted by scottt View Post
I've gotten the python scripts to launch K4PC and I double click on a book & close it but I get an error message of "Failed To Determine Book Path"

mobidedrm.py and unswindle.pyw are in the ptyhon26 directory and c:\python26 is in the system path...

I think I'm real close !

What am I missing?

Novice at python
Do you close K4PC when the book is open ?
Idoine is offline   Reply With Quote
Old 12-23-2009, 06:05 PM   #203
scottt
Junior Member
scottt began at the beginning.
 
Posts: 8
Karma: 10
Join Date: Jul 2009
Device: Kindle
I closed the application when the book was open.

Just tried again... the script launched K4PC I doubled clicked and opened the book, paged through a few pages clicked back to home and closed. Still get the Failed to Determine book path"

Last edited by scottt; 12-23-2009 at 06:15 PM.
scottt is offline   Reply With Quote
Old 12-23-2009, 06:15 PM   #204
Leep
Guru
Leep ought to be getting tired of karma fortunes by now.Leep ought to be getting tired of karma fortunes by now.Leep ought to be getting tired of karma fortunes by now.Leep ought to be getting tired of karma fortunes by now.Leep ought to be getting tired of karma fortunes by now.Leep ought to be getting tired of karma fortunes by now.Leep ought to be getting tired of karma fortunes by now.Leep ought to be getting tired of karma fortunes by now.Leep ought to be getting tired of karma fortunes by now.Leep ought to be getting tired of karma fortunes by now.Leep ought to be getting tired of karma fortunes by now.
 
Leep's Avatar
 
Posts: 739
Karma: 1018859
Join Date: Jun 2008
Location: Near Seattle
Device: kindle1, K3, K3G (thanks MR), iTouch, Kindle Touch
Have you looked in the directory my documents\my kindle content to see if it is creating new files. This is what happened to me. In each case there was a new ebook that started with B000 which was the new drm free ebook.

cheers
Leep is offline   Reply With Quote
Old 12-23-2009, 06:18 PM   #205
ekaser
Opinion Artiste
ekaser has a propeller beanie that spins backward.ekaser has a propeller beanie that spins backward.ekaser has a propeller beanie that spins backward.ekaser has a propeller beanie that spins backward.ekaser has a propeller beanie that spins backward.ekaser has a propeller beanie that spins backward.ekaser has a propeller beanie that spins backward.ekaser has a propeller beanie that spins backward.ekaser has a propeller beanie that spins backward.ekaser has a propeller beanie that spins backward.ekaser has a propeller beanie that spins backward.
 
ekaser's Avatar
 
Posts: 301
Karma: 61464
Join Date: Mar 2009
Location: Albany, OR
Device: Nexus 5, Nexus 7, Kindle Touch, Kindle Fire
Quote:
Originally Posted by scottt View Post
I closed the application when the book was open.

Just tried again... the script launched K4PC I doubled clicked and opened the book, paged through a few pages clicked back to home and closed. Still get the Failed to Determine book path"
The "clicked back to home" is what's getting you, most likely. When you click the HOME button in K4PC, you're CLOSING the current book and returning to the 'library'. Instead, do NOT click on 'Home' (and you don't have to click through any pages). While the book is open (a page of the book is being displayed) close the K4PC application (click on the X in the top-right corner or double-click the upper-left corner).
ekaser is offline   Reply With Quote
Old 12-23-2009, 06:27 PM   #206
i♥cabbages
Leafy greens connoisseur
i♥cabbages has become one with the cosmosi♥cabbages has become one with the cosmosi♥cabbages has become one with the cosmosi♥cabbages has become one with the cosmosi♥cabbages has become one with the cosmosi♥cabbages has become one with the cosmosi♥cabbages has become one with the cosmosi♥cabbages has become one with the cosmosi♥cabbages has become one with the cosmosi♥cabbages has become one with the cosmosi♥cabbages has become one with the cosmos
 
Posts: 49
Karma: 21271
Join Date: Feb 2009
Device: PRS-505
Quote:
Originally Posted by scottt View Post
I closed the application when the book was open.

Just tried again... the script launched K4PC I doubled clicked and opened the book, paged through a few pages clicked back to home and closed. Still get the Failed to Determine book path"
Which version of unswindle do you have?

When did you install Kindle for PC?

If you can find the actual Kindle for PC executable (.exe file), right click on it, select "Properties", then select the "Version" tab, what does it have in the "File Version" field?

A few days ago Amazon started providing a new version of Kindle For PC which (intentionally or not) broke unswindle versions 1-3. Version 4 detects the new version, but doesn't work with it. Version 5 (currently 5-rc1) should work with the new version.
i♥cabbages is offline   Reply With Quote
Old 12-23-2009, 06:37 PM   #207
scottt
Junior Member
scottt began at the beginning.
 
Posts: 8
Karma: 10
Join Date: Jul 2009
Device: Kindle
Quote:
Originally Posted by Leep View Post
Have you looked in the directory my documents\my kindle content to see if it is creating new files. This is what happened to me. In each case there was a new ebook that started with B000 which was the new drm free ebook.

cheers
Thank you, thank you, thank you...

I just tried again and found the book in my kindle content just as you outlined!!!

The Save window opened, named the book and I got several script errors. However, I found the book renamed as B00... .prc in the MY Kindle Content dir.. I opened the B000..prc book and voila !! There it was..

Thank you again !!! Most Appreciated

Special Thank-you to all of the highly skilled python guru's that made this possible!
scottt is offline   Reply With Quote
Old 12-23-2009, 06:40 PM   #208
i♥cabbages
Leafy greens connoisseur
i♥cabbages has become one with the cosmosi♥cabbages has become one with the cosmosi♥cabbages has become one with the cosmosi♥cabbages has become one with the cosmosi♥cabbages has become one with the cosmosi♥cabbages has become one with the cosmosi♥cabbages has become one with the cosmosi♥cabbages has become one with the cosmosi♥cabbages has become one with the cosmosi♥cabbages has become one with the cosmosi♥cabbages has become one with the cosmos
 
Posts: 49
Karma: 21271
Join Date: Feb 2009
Device: PRS-505
Quote:
Originally Posted by Leep View Post
Have you looked in the directory my documents\my kindle content to see if it is creating new files. This is what happened to me. In each case there was a new ebook that started with B000 which was the new drm free ebook.
Wait, what? That's where K4PC stores it's files, DRMed, Topaz, and free-and-clear all together. When unswindle works it will prompt you for a separate destination file. If you end up with DRM-free files in that directory then that's because the books you downloaded via K4PC were DRM-free in the first place.
i♥cabbages is offline   Reply With Quote
Old 12-23-2009, 06:51 PM   #209
scottt
Junior Member
scottt began at the beginning.
 
Posts: 8
Karma: 10
Join Date: Jul 2009
Device: Kindle
Quote:
Originally Posted by ekaser View Post
The "clicked back to home" is what's getting you, most likely. When you click the HOME button in K4PC, you're CLOSING the current book and returning to the 'library'. Instead, do NOT click on 'Home' (and you don't have to click through any pages). While the book is open (a page of the book is being displayed) close the K4PC application (click on the X in the top-right corner or double-click the upper-left corner).
OK, I get to the Windows Save Option, I name the file xyz.mobi then the script issues this set of errors

Traceback (most recent call last):
File "c:\python26\unswindle.pyw", line 803, in gui_main
unswindler.decrypt_book(inpath, outpath, pid)
File "c:\python26\unswindle.pyw", line 769, in decrypt_book
universal_newlines=True)
File "c:\python26\lib\subprocess.py", line 614, in __init__
errread, errwrite) = self._get_handles(stdin, stdout, stderr)
File "c:\python26\lib\subprocess.py", line 722, in _get_handles
p2cread = self._make_inheritable(p2cread)
File "c:\python26\lib\subprocess.py", line 761, in _make_inheritable
DUPLICATE_SAME_ACCESS)
WindowsError: [Error 6] The handle is invalid

I'm launching all this from the command line, Is that correct?
scottt is offline   Reply With Quote
Old 12-23-2009, 07:22 PM   #210
i♥cabbages
Leafy greens connoisseur
i♥cabbages has become one with the cosmosi♥cabbages has become one with the cosmosi♥cabbages has become one with the cosmosi♥cabbages has become one with the cosmosi♥cabbages has become one with the cosmosi♥cabbages has become one with the cosmosi♥cabbages has become one with the cosmosi♥cabbages has become one with the cosmosi♥cabbages has become one with the cosmosi♥cabbages has become one with the cosmosi♥cabbages has become one with the cosmos
 
Posts: 49
Karma: 21271
Join Date: Feb 2009
Device: PRS-505
Quote:
Originally Posted by scottt View Post
I'm launching all this from the command line, Is that correct?
When you launch it from the command-line, are you using python.exe or pythonw.exe? If the former, try the latter. And is there some reason you're using the command-line instead of just opening the script file in explorer?
i♥cabbages is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
discovering and loving this fb.2 reader.. oncdoc Astak EZReader 2 04-19-2010 06:05 PM
K4 Mac or PC Where are K4PC files? lmittell Amazon Kindle 3 01-06-2010 01:04 AM
Where is the PID on Pocket Pro, ADE and K4PC? rxsz Astak EZReader 7 12-20-2009 05:29 AM
Free on Kindle - Discovering Dani koland Deals and Resources (No Self-Promotion or Affiliate Links) 0 09-28-2009 09:57 AM
Kindle PID from Mobi PID - can anyone do it? delphidb96 Workshop 2 04-27-2009 04:42 PM


All times are GMT -4. The time now is 05:41 AM.


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