Comments (16)
The fact that the .b64 file was blank indicates that either the email or password you entered were wrong.
from dedrm_tools.
I'm using a password manager, and as I can log into my account with the email/password I'm copying into DeDRM, I don't think my email/password are wrong. (I've also tried this multiple times now.) Where is this handled in the code? I know Python and can probably provide additional diagnostic info if I know where to look.
from dedrm_tools.
I don't know why else the exported .b64 would be blank. Here's a way to see what the plugin is getting from B&N:
Create an URL using the template below by substituting in your B&N account email address and password. View the source of the returned web page, and the key will be between ccHash tags. If the email/password is wrong, it will say, "This Email Address and Password is not associated with an existing customer." If it returns a key, you can try reentering the correct info into the plugin configuration. Or just copy those 28 characters and save them as plain text in a .b64 file which can then be imported.
https://cart4.barnesandnoble.com/services/service.aspx?Version=2&acctPassword=YOUR_PASSWORD&devID=PC_BN_2.5.6.9575_26595D2569D3F8CB07CA2A89018D1234&emailAddress=YOUR_EMAIL_ADDRESS&outFormat=5&schema=1&service=1&stage=deviceHashB
from dedrm_tools.
I tried this and got a generic 404 error from Microsoft IIS. Does it work for you?
My password contains non-alphanumeric characters. Could escaping be an issue?
from dedrm_tools.
Aha! Yes, that's probably it. Try replacing the non-alphanumerics with their escape codes in that URL.
(Here's a reference: http://www.december.com/html/spec/esccodes.html)
from dedrm_tools.
Even with all the special characters escaped, I'm still getting the same 404 error. My only guess here involves User-Agent strings, but if that's the case, what User-Agent strings does the site accept, and what User-Agent string is DeDRM/Calibre using?
from dedrm_tools.
That's possible. The url is actually the one that Nook for PC uses. It works for me using Chrome on Windows 8. When I replace a character in my password with the correct percent code, I get my key. When I put in the wrong password, I get a message about it being an unknown email/password combo. When I put in an unescaped reserved character, I get the 404 page.
Ok, just tried with the Chrome browser on an Android tablet. Apparently, I typed my password wrong because I got a message that my account was about to be locked from too many attempts. So I guess I'll stop messing with that! But it did respond with something instead of the 404 page.
from dedrm_tools.
I've now tried Chromium and Firefox on Linux and Chrome and Firefox on Android---I'm still getting the 404 error with both the URL above and the URL from the Python code for the Android devices, replacing the string random
with the random string from the URL you gave above. I was quite careful with constructing the URLs, but I've still been doing it by hand, so I can't swear I didn't make any mistakes, though I used Perl's URI::Escape to do the substitution for my password. I don't have any more ideas, though I'm going to try changing my password and redoing the URLs.
How did you find these URLs in the first place? Is something to do with the random element possibly mucking them up? Does the URL change when you change your password?
from dedrm_tools.
The url was posted at Alf's blog by someone who figured out how Nook for PC retrieved the key. Then it got incorporated into the tools.
Hopefully changing your password to one without special characters will do the trick. The url will be the same other than changing your password. And of course, you can add a new key created with the new password to the plugin and see what happens.
from dedrm_tools.
I don't know what the issue was with the URLs, but changing my password worked. I looked at the code, and urllib.quote()
in ignorekeyfetch.py ought to escape special characters in passwords. I'm not sure if urllib.quote_plus()
would work better. There's clearly some kind of insufficient escaping going on, though. I would add: it would also be nice if the plugin gave an error when it fails to retrieve a valid key, rather than failing silently.
from dedrm_tools.
I will see what can be done about adding some more error checking.
from dedrm_tools.
I had a similar experience - Non-alpha numeric characters in the B&N password causing the DRM removal process in Calibre to fail.
A procedural solution that worked ...
1> change the B&N password (to remove non-alpha numeric characters)
2> if downloaded previously (i.e., while using the prior B&N password), clear the downloaded nook ebooks from pc (e.g., the default path being ... C:...\Documents\My Barnes & Noble eBooks\Your email address)
3> redownload nook books (after the B&N password was changed)
4> 'Add Books' from B&N folder into Calibre
5> Install DeDRM tools [https://apprenticealf.wordpress.com/]
6> Customize the DeDRM plugin with a B&N key (using the new B&N password, sans alpha numeric characters)
7> Convert Nook Books to the desired format
from dedrm_tools.
Put step 4 after step 6.
from dedrm_tools.
Improvements to the B&N key dialog in the plugin will be included in 6.4.3. These should stop the empty keyfile problem.
from dedrm_tools.
6.4.3 is ready to go, but I'd like to get confirmation that it's all working. Please give this version a go:
DeDRM_plugin.zip
from dedrm_tools.
6.4.3 released
from dedrm_tools.
Related Issues (20)
- calibre.ebooks.ConversionError: pdftohtml failed with return code: 1 HOT 1
- install returns print ( ) error HOT 2
- A question about the constant IV HOT 2
- [QUESTION] Blacklisting the DeDRM plugin as it is too old and causes crashes HOT 1
- Can't sign in to Nook for PC HOT 3
- DeDRM Project HOT 1
- drm issue for kindle HOT 5
- Install problem (MacOS, M1 arm) HOT 1
- Install problem (MacOS, M1 arm) HOT 1
- [QUESTION] Getting ERROR: not valid for use in process: mapped file has no cdhash HOT 1
- DeDrm is not working HOT 1
- Kindle Android - book unavailable in this version of the application HOT 3
- Using Calibre 6.11.0 under Big Sur on mac and DRM plugin 6.8.1 plugin HOT 1
- DRM is not working HOT 12
- DRM book issue HOT 1
- DeDRM is not work HOT 1
- Calibre crashes when 'customizing plugin' HOT 1
- HELPPPPPP HOT 4
- KINDLE PC HOT 2
- Obok Plugin recognize my ebook as DRM free HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dedrm_tools.