06-22-2008, 09:33 AM | #76 |
The Grand Mouse 高貴的老鼠
Posts: 72,497
Karma: 309060442
Join Date: Jul 2007
Location: Norfolk, England
Device: Kindle Voyage
|
It's possible to patch the 0.02 script to make it work with all the files that work with 0.01. Try the following changes:
Add two lines before line 63 (while True: ) if size <= 0: return result Comment out line 72 (while flags: ) and remove one indent tab from each of the following three lines (if flags & 1: num += getSizeOfTrailingDataEntry(ptr, size - num) flags >>= 1) And that should do it. It's worked on all my DRMed files - around 50 or so, some of which wouldn't work with 0.01 and some wouldn't work with 0.02. Paul |
06-22-2008, 11:07 AM | #77 |
Linux User
Posts: 323
Karma: 13682
Join Date: Aug 2007
Location: Germany
Device: Kindle 3
|
Thank you, Paul! It worked with all of my 49 DRMed files – no switching back and forth between version 0.01 and 0.02 anymore.
|
Advert | |
|
06-24-2008, 04:05 PM | #78 |
Wizard
Posts: 1,229
Karma: 543210
Join Date: Feb 2008
Location: Gatlinburg, Tennessee
Device: Kindles: Paperwhite Signature Ed., Oasis 2, Voyage
|
|
06-24-2008, 09:28 PM | #79 |
Junior Member
Posts: 7
Karma: 10
Join Date: Jun 2008
Device: Nokia 770
|
I’ve had success with Mobidedrm before, now all I’m getting is …
MobiDeDrm v0.02. Copyright (c) 2008 The Dark Reverser Removes protection from Mobipocket books Usage mobidedrm infile.mobi outfile.mobi PID The result is the same whether I just type "mobidedrm", or "mobidedrm" with input file name, both file names, or the complete statement with both file names and my PID. I am in the python25 folder and my DRM'd book is in that folder. Any help would be appreciated. Thanks. Ray |
06-24-2008, 11:38 PM | #80 | |
reader
Posts: 6,975
Karma: 5183568
Join Date: Mar 2006
Location: Mississippi, USA
Device: Kindle 3, Kobo Glo HD
|
Quote:
|
|
Advert | |
|
06-25-2008, 12:41 AM | #81 |
Junior Member
Posts: 7
Karma: 10
Join Date: Jun 2008
Device: Nokia 770
|
Thanks wallcraft,
Yeah, thats right. I get the same message whether I put in 0, 1, 2 or all three arguments. I use CMD from XP Run. I cd\python25 then I get the prompt c:\python25> then i type mobidedrm triumph.mobi mytri.mobi BV38BEF$ND I always get the same message. When it worked before, it worked on some mobipocket books I downloaded 3 years ago. This is happening with one I downloaded recently. The old ones don't even work anymore. I uninstalled and reinstalled python 2.5. When I use the python editor and choose "Run", with debugging, it seems to hang on the first line where it says "import sys,struct,binascii". I don't know where this stuff is to import from. Ray |
06-25-2008, 12:45 AM | #82 |
Resident Curmudgeon
Posts: 76,370
Karma: 136466962
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
With Python 2.5 installed, I don't need to go to the Python directory. I just have a directory that has the Python programs there and use the command (most of the time)...
Code:
mobidedrm.py DRMladenebook.prc nonDRMladenebook.prc PID Last edited by JSWolf; 12-24-2008 at 03:46 AM. |
06-25-2008, 12:51 AM | #83 |
Junior Member
Posts: 7
Karma: 10
Join Date: Jun 2008
Device: Nokia 770
|
Thanks JSWolf,
I noticed you began you statement with "mobidedrm.py" instead of just "mobidedrm". I think I've tried that, but will try again. I just tried it and same result. Do I have to have something running in the background? Something that should be in my startup folder? Ray |
06-25-2008, 01:32 AM | #84 | |
reader
Posts: 6,975
Karma: 5183568
Join Date: Mar 2006
Location: Mississippi, USA
Device: Kindle 3, Kobo Glo HD
|
Quote:
Code:
.\mobidedrm.py "triumph.mobi" "mytri.mobi" "BV38BEF$ND" |
|
06-25-2008, 09:04 AM | #85 |
Resident Curmudgeon
Posts: 76,370
Karma: 136466962
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
I have nothing special running in the background. All I have is Python 2.5 installed on Windows XP Pro.
|
06-25-2008, 12:21 PM | #86 | |
Grand Sorcerer
Posts: 19,832
Karma: 11844413
Join Date: Jan 2007
Location: Tampa, FL USA
Device: Kindle Touch
|
Quote:
BOb |
|
06-25-2008, 03:25 PM | #87 | |
Wizard
Posts: 1,229
Karma: 543210
Join Date: Feb 2008
Location: Gatlinburg, Tennessee
Device: Kindles: Paperwhite Signature Ed., Oasis 2, Voyage
|
Quote:
Depending upon which version of Python you installed, it may have modified your system PATHEXT environment variable to include .py . This allows you to run .py files without specifying the extension; i.e., run the script as just "mobidedrm." You can change this manually via Control Panel if it is important to you to be able to drop the .py. Last edited by bwaldron; 06-25-2008 at 07:16 PM. |
|
06-25-2008, 07:00 PM | #88 |
Resident Curmudgeon
Posts: 76,370
Karma: 136466962
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
I run Python here and have to add the .py to the command. Other then that, it works fine.
|
06-25-2008, 08:42 PM | #89 |
Junior Member
Posts: 7
Karma: 10
Join Date: Jun 2008
Device: Nokia 770
|
Thanks to you all for helping me with this. The attached Word file has a screen shot of my commands and the results.
I'm beginning to think that my method for creating mobidedrm.py is faulty. I open the text file in Notepad, I select all and copy. Then I open the Python editor, create new script file, paste, then save to Python25 folder where the drm'd book and the python program files reside. I think I will try to manually copy the text file with the script, the paste it into the Python editor. Maybe selecting all is bringing over some garbage. It seems Python is working, and mobidedrm is executing on a limited basis, so I'm thinking that somehow mobidedrm.py is getting screwed up. Also, do I need to have Mobireader installed? Thanks, Ray |
06-25-2008, 08:50 PM | #90 |
Resident Curmudgeon
Posts: 76,370
Karma: 136466962
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Edit the file with Notepad and see if you've anything wrong in there. If so, fix it. Then save it. There is no need to run it from the Python command prompt. Just run it from a command prompt without using any Python command first. Also try it without the quotes. It could be the quotes around the PID that is causing a problem. But dump ALL the quotes to start with.
|
Tags |
conversion, drm, formatting, mobipocket |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
New Epub/Mobipocket creation tool: Jutoh | Julian Smart | ePub | 78 | 03-28-2014 08:28 AM |
eReader Decoder Tool | wallcraft | Workshop | 177 | 09-27-2009 09:46 PM |
Secure Mobipocket Decoder | ebookfab | Kindle Formats | 3 | 12-09-2008 09:50 PM |
Secure Mobipocket Decoder v0.3 | Aenea | Kindle Formats | 74 | 07-10-2008 10:57 AM |
Secure Mobipocket Decoder is no more... | Aenea | Kindle Formats | 26 | 04-12-2008 10:53 AM |