View Single Post
Old 01-02-2010, 12:29 PM   #141
epstewart
Connoisseur
epstewart will become famous soon enoughepstewart will become famous soon enoughepstewart will become famous soon enoughepstewart will become famous soon enoughepstewart will become famous soon enoughepstewart will become famous soon enough
 
Posts: 54
Karma: 558
Join Date: Oct 2009
Device: iPhone 3G 16GB, B&N nook
Quote:
Originally Posted by rwe View Post
Thanks all,
however i had to do a couple of things to make it work, things probably very basic, but maybe not as clear to everyone who works by pushing buttons like me.

when i clicked on the links in the cabbages blog, i got something with linenumbers etc. it didn't work out of the box.
-i had to cut and paste it into texteditor or scripteditor
-then i had to save it as plain xxx.txt to check and to xxx.py to get something that python understood
i put these files on the desktop btw.
clicking on the xxx.py created the structure and the application that did the trick.
i validated all by loading the output file of the operation into adobe digital editions and calibre and no hitch there, it worked.

i'am now one happy customer in control of my own books
Rene,

I am glad you have figured all this out! And that it works for you!

Here is my experience with it:

I went here at the i♥cabbages blog and clicked on each of the three scripts in turn: ignoblekey (even though it's Windows-only), ignoblekeygen, and ignobleepub. The links each take you to pages at pastie.org that list the script's code. At upper-right is a Download link for each, and when I used that I wound up with just the code itself without line numbers, etc. I saved each download to an appropriately named file with extension .py (not .pyw).

Then I double-clicked on the ignoblekeygen.py file. Because I have Python 2.6 installed, it created an ignoblekeygen app in the same folder, and when I double-clicked on that app, it opened a dialog box into which I entered my name (as registered at Barnes & Noble online) and my credit card number. ignoblekeygen put its output file, bnepubkey.b64, at the root level of my Mac's folder hierarchy — not my ~/ user folder hierarchy, the main folder hierarchy.

I did the same thing with ignobleepub.py, as downloaded. I double-clicked it to cause the ignobleepub app to appear in the same folder. Double-clicking the ignobleepub app brought up a dialog which asked me to enter the location of the key file that was generated in the prior step (bnepubkey.b64) — I just let that default to the root-level file generated as a default by ignoblekeygen, though I could have moved the default file elsewhere — and also the file I wanted decrypted. (There are ... buttons which let you browse for file locations.) The third field in the dialog is for the filename and location to be used for the decrypted output file.

Here I ran into a minor snag: none of my books from B&N seem to use the encryption these scripts are intended for! I tried inputting into the ignobleepub app a .pdb file I have on hand, but the script app complained that the input file wasn't a ZIP file, and did not produce any output.

So I'd appreciate it if you or anyone else reading this thread would supply me with a link to a book that these scripts work with!

Regards,
Eric
epstewart is offline   Reply With Quote