Audio/video stream recording forums (http://stream-recorder.com/forum/index.php)
-   Removing DRM protection from eBooks (http://stream-recorder.com/forum/forumdisplay.php?f=63)
-   -  

MobiDeDRM.py - remove DRM from Mobipocket ebooks (unDRM MOBI and PRC files)

(http://stream-recorder.com/forum/showthread.php?t=5429)

Jodievt 08-27-2010 09:59 PM

Re: MobiDeDRM.py - remove DRM from Mobipocket ebooks


 
hi,

I've tried to put this into calibre plugin to decript all my PRC files, but when I click on the file I want and press convert it comes up with this error:

WARNING: Could not convert some books: Could not convert 1 of 1 books, because no suitable source format was found.


I've put all my registered PIDs in the customize field and even put \ before any $ signs but still don't know what is going on.

Can anyone help?

Thanks


Found a solution:
http://stream-recorder.com/forum/sho...41&postcount=2

dmarcus48 09-05-2010 09:00 AM

Re: MobiDeDRM.py - remove DRM from Mobipocket ebooks


 
First of all let me thanks the guys who did this, THANKS!!

I have a mac, I downloaded python and when I went into a term window, I could type python and it would find the program and go into it. I tried the command line and couldn't get it to work. So I decided try the plugin method. I downloaded the mobidedrm, copied the script into it and named the file mobidedrm_plugin.py, zipped it and added it to the plugin into Calibre, I then customized it with all my PID's from the Mobipocket Readers site, and it worked PERFECT! When I added the file to my library there was no error, and then I had to run the convert tool, and wah la! And one of my PID's have a $ in it, I didn't have to do anything. I just put them all in separated by a comma.

Thanks Guys.

Panayotis 09-16-2010 01:57 PM

Re: MobiDeDRM.py - remove DRM from Mobipocket ebooks


 
Hi

I want toremove DRM from a *.prc files in order to use it on a HTC Android Phone with FBreaderJ

Firstable, i don't have any Palm device so i ask you how can i get the PID?

I havent buy the prc file yet!

I just have a x86 laptop with Seven Pro and a N900 device

Need help

Thanks a lot

(the prc file is for my girlfriend cellphone!)

slayda 09-16-2010 08:10 PM

Re: MobiDeDRM.py - remove DRM from Mobipocket ebooks


 
Quote:

Originally Posted by Panayotis (Post 21503)
Hi

I want toremove DRM from a *.prc files in order to use it on a HTC Android Phone with FBreaderJ

Firstable, i don't have any Palm device so i ask you how can i get the PID?

I havent buy the prc file yet!

I just have a x86 laptop with Seven Pro and a N900 device

Need help

Thanks a lot

(the prc file is for my girlfriend cellphone!)

You can DL the Mobipocket Reader from mobipocket.com for your PC. You should then get a PID for the PC that you would provide to the seller of the DRMed .prc ebook. Use that PID with mobidedrm.py.

You can find your PC's PID in the "Help" --> "About" window of the Mobipocket Reader.

Panayotis 09-16-2010 10:56 PM

Re: MobiDeDRM.py - remove DRM from Mobipocket ebooks


 
Hi

Thanks for the answer!

So, i install Mobipocket Reader 6.2 to my Seven x86 32 bits!
I have found my PID
I have installed Python et wxPython 2.6
I have downloaded MobileDeDRM

And i have followed the tutorial

So now i have a "outfile.prc" with no DRM! I use MobiledeDRM 002.py instead of MobiledeDRM005.py (no success with 005)

The pb now is how can i now if the file is really DRM free?????

I have transfered the outfile.prc to my N900 and it tell me "compression format not supported"!!!! What does it mean???

For info, i can read the "free trial file.prc" given by Mobypocket, so my N900 with fbreader can read .prc files!


Thanks for your help

slayda 09-17-2010 07:29 AM

Re: MobiDeDRM.py - remove DRM from Mobipocket ebooks


 
Quote:

Originally Posted by Panayotis (Post 21512)
Hi

Thanks for the answer!

So, i install Mobipocket Reader 6.2 to my Seven x86 32 bits!
I have found my PID
I have installed Python et wxPython 2.6
I have downloaded MobileDeDRM

And i have followed the tutorial

So now i have a "outfile.prc" with no DRM! I use MobiledeDRM 002.py instead of MobiledeDRM005.py (no success with 005)

The pb now is how can i now if the file is really DRM free?????

I have transfered the outfile.prc to my N900 and it tell me "compression format not supported"!!!! What does it mean???

For info, i can read the "free trial file.prc" given by Mobypocket, so my N900 with fbreader can read .prc files!


Thanks for your help

To see if it is decrypted, i.e. DRM free, open it in Mobipocket Reader on your PC - on the left you'll see a frame with "BOOKSHELF" at the top. Just below that you'll see "ebooks". Click this & find your ebook in the bookshelf. Right click on your ebook to bring up a menu & choose "Properties", then select the "Summary" tab. At the very bottem of this window, you'll see "Encryption:" & the encryption state. If you have removed the DRM it will show "Non Encrypted"

As to the compression, Mobipocket ebooks can be compressed (I think there are two compression methods). It sounds like your file is compressed with a compression method that your N900 can't read. You can fix this with a little work.

First get Calibre and convert the file to RTF format, then use MS Word to change it to .doc format. Now DL Mobipocket Creator from mobipocket.com & use the .doc file to create a .prc & be sure to choose no compression.

There are probably other ways to get there but this is one way I know that will work.

There is a "mobi2html.exe" if you can find it online that will convert the .prc to an HTML file which can also be input into Mobipocket Creator. This would save one conversion step but I'm only vaguely aware of this program and have no experience with it.

bee 09-29-2010 05:17 AM

Re: MobiDeDRM.py - remove DRM from Mobipocket ebooks


 
Thanks guys.

I'm on a mac, so i got the PID for my iphone added it to my diesel ebooks account re downloaded the file and it all worked fine.

Decrypted file now works with stanza so I asume it will convert for Kindle as well.

I'm now free to buy the books Amazon won't let me purchase from Australia.

Yay!

CluelessinMO 10-24-2010 06:32 PM

Re: MobiDeDRM.py - remove DRM from Mobipocket ebooks


 
Quote:

Originally Posted by dynalady (Post 18956)
I'm not sure what I did wrong, but it isn't working.

I have Mac OSX so it will read the python script. I downloaded MobiDeDRM v.0.13 and saved it in a file on my hard drive. Renamed it to mobidedrm_plugin.py. I think the problem may be where I put it in Calibre. I went to preferences, plugins, add and selected the zip and hit ok. It didn't convert the drmd book I was trying to open. Should I put the plugin in a specific plugin type folder? If so, which one? Is there some other way to import the plugin to Calibre? Can you tell I don't know much about how all this works? I just want to be able to read the free library book on my new Kindle .

As with this quote. I am also having problems attaching MobiDeDRM to Calibre. I get a "Invalid Plugin message"....Any help will be appreciated....
Also, further up the post, I have tried to run the python script and I get a " 'python' is not recognized as an internal or external command, operable program or batch file. Can anyone tell me what I am doing wrong?

Stream Recorder 10-25-2010 01:17 AM

Re: MobiDeDRM.py - remove DRM from Mobipocket ebooks


 
Quote:

Originally Posted by CluelessinMO (Post 22463)
Also, further up the post, I have tried to run the python script and I get a " 'python' is not recognized as an internal or external command, operable program or batch file. Can anyone tell me what I am doing wrong?

Have you installed python?

If it is installed, try to put the script and your ebooks into the pyhon directory, then run the script from this directory.

CluelessinMO 10-25-2010 07:02 AM

Re: MobiDeDRM.py - remove DRM from Mobipocket ebooks


 
Quote:

Originally Posted by Stream Recorder (Post 22465)
Have you installed python?

If it is installed, try to put the script and your ebooks into the pyhon directory, then run the script from this directory.


I have installed Python. I have tried to run the script "python mobiedrm005.py infile.prc outfile.prc PIN ...replacing the infile, outfile and PIN. I get there error as stated in my prievious post that 'python' is not a valid .....


All times are GMT -6. The time now is 03:56 AM.