07-23-2008, 04:04 PM | #106 | |
Evangelist
Posts: 496
Karma: 2384998
Join Date: Aug 2007
Location: London, UK
Device: iPad, iPhone, K3 & Amazon - between them they cover my needs.
|
Hi
I'm also (trying) to use PDurrant's Applett/Droplett (for which a big thank you!) and what you say is exactly the problem I'm having: Quote:
Any help much appreciated. Thanks, Peter. |
|
07-23-2008, 04:18 PM | #107 |
Resident Curmudgeon
Posts: 75,803
Karma: 134321338
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
There are multiple versions of MobiDeDRM and you may be using the wrong one for the eBook you are trying to strip the DRM from.
|
Advert | |
|
07-23-2008, 05:05 PM | #108 |
Evangelist
Posts: 496
Karma: 2384998
Join Date: Aug 2007
Location: London, UK
Device: iPad, iPhone, K3 & Amazon - between them they cover my needs.
|
Thanks JSW.
I've tried both MobiDeDRM 0.01 and 0.02 scripts, on several eBooks (different sources) and always the same result - an "Unlocked_YourBook.prc" of 0 KB Hey ho; we'll sort it eventually... Thanks, Pete. |
07-24-2008, 12:44 AM | #109 |
Addict
Posts: 321
Karma: 432192
Join Date: Dec 2007
Location: Glasgow, Scotland
Device: Amazon Kindle Paperwhite
|
Same thing here, I tried them all, except the ereader2html script (I might try it just for the hell of it) and still got the zerok size file. And like Peter, I'd like to say thanks to Pdurrant (I think it was) for coming up with this in the first place. And like Peter, I'm sure we'll sort it out in the end.
edit. Peter - I had a look at the 'script' inside the resources folder inside the decoder Pdurrant put together. I don't understant scripting or python or whatever, but I did notice scrolling down that the numbers and letters that automatically appear in the window when you select a .prc file are set as a kind of 'default', so presumably I have to go to the site where I bought a particular file and find the mobipocket id. Unfortunately, all I've bought so far are multiformat magazines, and I don't appear therefore to have any associated id's listed on the appropriate page. It may be that Peter or someone else has secure mobi files they can test the program on; or may already have. I could purchase a secure mobi file and run the script on that, but I'd rather wait and hear if anyone's been able to run the script on secure mobi files, as opposed to multiformat ones. Last edited by garygibsonsf; 07-24-2008 at 02:00 AM. Reason: new info |
07-24-2008, 08:47 AM | #110 | |
Reticulator of Tharn
Posts: 618
Karma: 400000
Join Date: Jan 2007
Location: EST
Device: Sony PRS-505
|
Quote:
Pop open a command-line and run: Code:
python --version Code:
python mobidedrm.py inbook.mobi outbook.mobi PID |
|
Advert | |
|
07-24-2008, 08:49 AM | #111 | |
Reticulator of Tharn
Posts: 618
Karma: 400000
Join Date: Jan 2007
Location: EST
Device: Sony PRS-505
|
Quote:
|
|
07-24-2008, 09:16 AM | #112 |
Evangelist
Posts: 496
Karma: 2384998
Join Date: Aug 2007
Location: London, UK
Device: iPad, iPhone, K3 & Amazon - between them they cover my needs.
|
Quick update; I've had no joy getting the scripts to run under MacOSX, but just for fun I installed activepython on XP running under Parallels on my MacBook, and that works a treat, so success in a slightly convoluted sort of way!
@ garygibson All the files I've tried are secure mobipocket files - wouldn't be much point otherwise, right? When the script runs, there's a pop-up that lets you enter your PID. You can find your PID either from your device (under the 'advanced' menu on my Cybook) or through Mobipocket Reader if you have the software installed (PC only). Edit: Just seen the other responses; will give the 'python --version' a try and see what happens, but at least for now I have something that works! Thanks all! Pete. |
07-24-2008, 09:18 AM | #113 |
Addict
Posts: 321
Karma: 432192
Join Date: Dec 2007
Location: Glasgow, Scotland
Device: Amazon Kindle Paperwhite
|
I think it might be a problem with my PID after all. I got hold of a drm-ed file, a .prc. I then borrowed a windows laptop (as opposed to my usual ibook) and downloaded and installed mobireader onto it. The book opened on it fine. I clicked on devices, and there was a ten-digit number in the mobireader program that was, or so I got the impression, the PID. I emailed that to my ibook and tried it just now using that command line and with both the .py and the prc file in the same directory; but no luck. Except this time it did tell me I had an invalid PID. So maybe I'm looking in the wrong place for it. Hm.
Edit: I had a look under 'devices' in the mobipocket reader program on a windows xp machine, and there was a ten digit figure listed there (under the details for that pc) that I believe must be the PID, but it didn't work, unfortunately. Back to the drawing board for me. Last edited by garygibsonsf; 07-24-2008 at 11:01 AM. Reason: update |
07-24-2008, 03:07 PM | #114 |
Evangelist
Posts: 496
Karma: 2384998
Join Date: Aug 2007
Location: London, UK
Device: iPad, iPhone, K3 & Amazon - between them they cover my needs.
|
OK, update; I ran the "python --version' thing and it reported python 2.5.2. I copied the script and my book into the same directory, and I get an error message effectively (sorry, can't remember the exact words) saying the mobidedrm.py is not recognised.
So, the identical file works under windows through an emulator/virtual machine, but not under OSX. Weird, but I have something that works so I'm not too fussed. Thanks for all the help. Cheers, Peter |
07-24-2008, 04:04 PM | #115 |
Reticulator of Tharn
Posts: 618
Karma: 400000
Join Date: Jan 2007
Location: EST
Device: Sony PRS-505
|
Is the script file named 'mobidedrm.py'? If not then substitute the actual name of the script file.
|
07-24-2008, 05:10 PM | #116 |
Evangelist
Posts: 496
Karma: 2384998
Join Date: Aug 2007
Location: London, UK
Device: iPad, iPhone, K3 & Amazon - between them they cover my needs.
|
Hi
Yes, identical filenames, right down to the capitalisation. I'll have another play tomorrow as it's irritating, but to be honest as I have a solution that works (via windows/activepython) then it's not a priority. Sure, it would've been nice to stay within OSX and have drag & drop conversion with PDurrant's droplet, but what I have works well enough for now, and the command-line thing makes me feel almost nostalgic, lol! Cheers, Peter. |
07-25-2008, 02:50 AM | #117 |
The Grand Mouse 高貴的老鼠
Posts: 72,131
Karma: 307935764
Join Date: Jul 2007
Location: Norfolk, England
Device: Kindle Voyage
|
Updated Applescript
Hi Everyone,
I thought I'd removed my PID from the AppleScript, but I'd forgotten that it was on two places - once for drag&drop of files, and once for running the script on its own. I've uploaded a new version of the applescript to my original message, number 103. To decode DRMed Mobipocket files, you must have one of the PIDs for which the file is encrypted. All Mobipocket Reader programs have a PID, usually visible in an "About" box, and consisting of ten characters and digits. When buying a DRMed Mobipocket book, you have to supply the PID of the device on which you're going to read it. You can supply up to four separated PIDs for the same encrypted book. To use the Python Mobipocket decoder, you need to know once of the PIDs used when the DRMed file was downloaded. The Python script does not break the encryption from a standing start, it just uses the known key to do the decoding. I'm on Mac OS X 10.5.4 with the XCode 3.0 developer tools installed. I don't recall having to do anything in particular to get python running correctly. So far I haven't come across a DRMed Mobipocket eBook that my modified MobiDeDRM 0.02 script won't handle. See https://www.mobileread.com/forums/sho...4&postcount=76 for the modifications I use. If anyone's had success with the Applescript it would be good to hear from them. I do have another AppleScript for use with encrypted eReader files, using the eReader2html python script that usually accompanies the MobiDeDRM script. If anyone's interested, I'd be happy to upload that in the appropriate forum (well, without the eReader2html python script, of course.) Paul |
07-25-2008, 08:49 AM | #118 | |
Resident Curmudgeon
Posts: 75,803
Karma: 134321338
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
I used MobiDeDRM.py version 0.01 on those eBooks without a hitch. |
|
07-25-2008, 09:43 AM | #119 |
Addict
Posts: 321
Karma: 432192
Join Date: Dec 2007
Location: Glasgow, Scotland
Device: Amazon Kindle Paperwhite
|
Well, I did try ... I bought a mobiformat encrypted ebook: downloaded it to my girlfriend's laptop (running XP), after registering the PID from a copy of mobipocket reader I downloaded to it; the book opened fine in mobipocket reader on the windows machine; emailed the same file to my ibook; ran pdurrant's script on it (or rather, three versions of it, each one containing a different version of mobidedrm.py); and no luck still.
Then I took jswolf's suggestion; opened terminal; put the prc ebook I bought into the same folders as each of the altered mobipocket unlocker scripts; ran the python script on it as he typed it; except that this time, it said something like 'invalid PID checksum'. I did, by the way, notice a second file accompanying the purchased ebook, with the same name but the extension '.mbp'. I get the impression, however, this jsut tells the mobipocket software how to display the cover of the book. Butg no luck yet so far I'm afraid, sigh ... Last edited by garygibsonsf; 07-25-2008 at 09:49 AM. |
07-25-2008, 02:14 PM | #120 | |
Reticulator of Tharn
Posts: 618
Karma: 400000
Join Date: Jan 2007
Location: EST
Device: Sony PRS-505
|
Quote:
Code:
python mobidedrm.py book-drmed.prc book-clean.mobi 'FAKEPID$42' |
|
Tags |
conversion, drm, formatting, mobipocket |
Thread Tools | Search this Thread |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
New Epub/Mobipocket creation tool: Jutoh | Julian Smart | ePub | 78 | 03-28-2014 07:28 AM |
eReader Decoder Tool | wallcraft | Workshop | 177 | 09-27-2009 08:46 PM |
Secure Mobipocket Decoder | ebookfab | Kindle Formats | 3 | 12-09-2008 08:50 PM |
Secure Mobipocket Decoder v0.3 | Aenea | Kindle Formats | 74 | 07-10-2008 09:57 AM |
Secure Mobipocket Decoder is no more... | Aenea | Kindle Formats | 26 | 04-12-2008 09:53 AM |