apprenticeharper / DeDRM_tools

DeDRM tools for ebooks
14.52k stars 1.51k forks source link

Calibre B&N Cannot Retrieve Key #754

Open jcorig opened 5 years ago

jcorig commented 5 years ago

I have installed the plugin in "Calibre 3.38.1". However, it cannot retrieve the key. I am sure the username/pass is correct. An error dialog pops up with:

Could not retrieve key. Check username, password and intenet (sic) connectivity and try again.

To make sure the error was not on my part, I installed "Epubor Ultimate". That could also not login until I installed "Nook Study". With "Nook Study" running (and logged in ok), "Epubor" can decrypt files (but it is not free).

Not sure how to create a log. I ran "Calibre" from the command line with

calibre-debug -g

And there is nothing added to the window when I try to create a key. But here is the output:

C:\Windows\System32>calibre-debug -g calibre 3.38.1 embedded-python: True is64bit: False Windows-10-10.0.17134-SP0 Windows ('32bit', 'WindowsPE') 32bit process running on 64bit windows ('Windows', '10', '10.0.17134') Python 2.7.15+ Windows: ('10', '10.0.17134', 'SP0', u'Multiprocessor Free') Interface language: None Successfully initialized third party plugins: DeDRM (6, 6, 1) Turning on automatic hidpi scaling devicePixelRatio: 1.0 logicalDpi: 96.0 x 96.0 physicalDpi: 81.5518394649 x 81.6428571429 Using calibre Qt style: True [0.00] Starting up... [0.00] Showing splash screen... [0.14] splash screen shown [0.14] Initializing db... [0.16] db initialized [0.16] Constructing main UI... [1.14] main UI initialized... [1.14] Hiding splash screen [1.91] splash screen hidden [1.91] Started up in 1.91 seconds with 3 books

BertMedley commented 5 years ago

This is happening to me also.

  1. start Calibre
  2. go to Preferences > Change Calibre Behavior > Plugins
  3. Select DeDrm
  4. Configure DeDrm > select Barnes and Noble
  5. Enter unique key name, email address, password (verified correct)
  6. Press OK or Retrieve Key and get error

Calibre 3.38.1 DeDRM v6.6.1

calibre Debug log calibre 3.38.1 [64bit] embedded-python: True is64bit: True Windows-10-10.0.17134-SP0 Windows ('64bit', 'WindowsPE') ('Windows', '10', '10.0.17134') Python 2.7.15+ Windows: ('10', '10.0.17134', 'SP0', u'Multiprocessor Free') Interface language: None Successfully initialized third party plugins: Gather KFX-ZIP (from KFX Input) (1, 12, 1) && DeDRM (6, 6, 1) && Package KFX (from KFX Input) (1, 12, 1) && KFX metadata reader (from KFX Input) (1, 12, 1) && KFX Input (1, 12, 1) calibre 3.38.1 [64bit] embedded-python: True is64bit: True Windows-10-10.0.17134-SP0 Windows ('64bit', 'WindowsPE') ('Windows', '10', '10.0.17134') Python 2.7.15+ Windows: ('10', '10.0.17134', 'SP0', u'Multiprocessor Free') Interface language: None Successfully initialized third party plugins: Gather KFX-ZIP (from KFX Input) (1, 12, 1) && DeDRM (6, 6, 1) && Package KFX (from KFX Input) (1, 12, 1) && KFX metadata reader (from KFX Input) (1, 12, 1) && KFX Input (1, 12, 1) Turning on automatic hidpi scaling devicePixelRatio: 1.0 logicalDpi: 96.0 x 96.0 physicalDpi: 69.8681948424 x 69.8015267176 Using calibre Qt style: True [0.00] Starting up... [0.02] Showing splash screen... [0.06] splash screen shown [0.06] Initializing db... [0.08] db initialized [0.08] Constructing main UI... [0.86] main UI initialized... [0.86] Hiding splash screen [16.25] splash screen hidden [16.25] Started up in 16.25 seconds with 0 books

ElleKayEm commented 5 years ago

Yes, B&N has made a recent change that seems to have completely cut support for Nook for PC off. The B&N key retrieval in the plugin uses the same method that Nook for PC used so it is broken too.

However, Nookstudy for PC is still working. DeDRM can retrieve the key from Nookstudy (as long as it is installed on the same machine and user as DeDRM) without the need to add your B&N account info to the plugin.

But who knows how much longer Nookstudy will be able to connect. So I recommend freeing any books you have from them and not buying any more.

http://images.barnesandnoble.com/PResources/download/ereader2/sc/BN/pc/bndr_setup_2.1.2.28770.exe

Epubor does nothing more than these tools. Do not waste your money.

jcorig commented 5 years ago

ElleKayEm: Thank you. I didn't realize the plugin would work without a key. Your method works great: I downloaded all my books with Nook Study. Then, without generating a key, imported the books into Calibre from the Nook Study download folder (C:\Users\<my user name>\Documents\My Barnes & Noble eBooks\<my email address>) and the DRM has been removed.

BertMedley commented 5 years ago

I downloaded NOOKStudy as indicated and typed in the same username (amail) and password I use for thr BN sitre. After showing a cycling circle for a couple of minutes It takes me back to the login. Any ideas?

jcorig commented 5 years ago

Yes, I had the same issue. Apparently the secret is to close the Nook Study program while it is busy trying to log in. Then the next time you open the program you should be logged in.

ElleKayEm commented 5 years ago

DeDRM is able to grab your B&N key directly from Nookstudy's logs.

BertMedley commented 5 years ago

That did it.

stoneasher commented 5 years ago

I still have completely another decent solution contribution for This problem , i maneuvered it by doing this way :

1- if you need to DeDRM manually by the batch (other than using calibre), download nook study as others said . 2- download ebooks one by one . 3- go to DeDRM tools\Other_Tools\DRM_Key_Scripts\Barnes_and_Noble_ePubs\ 4- run ignoblekey.pyw and it will generate b64 key file to be used with the windows batch DeDRM 5- drag and drop the protected ebooks into \DeDRM_tools-6.6.1\DeDRM_tools-6.6.1\contrib\windows\DeDRM_App\DeDRM_Drop_Target.bat 5- That's it

it worked with success on each processed BN epub :)

ElleKayEm commented 5 years ago

I wouldn't think steps 3 and 4 are necessary.

eta: I mean the key script should run the first time you drag & drop a Nook book onto the Drop Target. Just like it does with the plugin.

portalley commented 5 years ago

Just fyi it looks like Nook Study finally stopped working at the beginning of March, so that leaves us without a workaround for this issue.

ElleKayEm commented 5 years ago

Some have had success with the Windows 8/10 Nook app.

grillod commented 5 years ago

Nook Study app stopped working for me as well. So as far as we know, the plugin for Calibre is just broken for good?

ElleKayEm commented 5 years ago

Some have been able to use the Windows 8/10 app.

With some effort you could probably use the Android app or a Nook device.

grillod commented 5 years ago

Yes youre right. That seems to be the case. I gave up after customization failed. But importing does work on some of my mew books but not others without customizing. Thanks!

LFenske commented 5 years ago

I was able to use the Microsoft Windows 10 Nook app (from the Microsoft store) to download books, but my credit card changed and I can't find the new Nook key. Are you saying that some have been able to use the Windows 8/10 app to download the key or just to download books?

ElleKayEm commented 5 years ago

Just to get the books. But if you have a key that worked previously, it may still work. It does for me. I've had the same key for years despite changed passwords. Ever since they stopped using credit card based keys.

SuiriuS commented 5 years ago

Is there no way to obtain a key now? Does downloading books through the win 10 app not have drm? The win 10 app isnt working for me, the books wont download at all, but thats a separate issue. I retrieved the epubs from the android app but without a key I cant scrub the drm on most of them.

ElleKayEm commented 5 years ago

You can find it on a rooted Android device with the Nook app or a rooted Nook.

LFenske commented 5 years ago

I finally acquired an Android device that I could root, went through much pain to root it (the easy way!), retrieved the latest Nook key, removed DRM from my test book, and bought and un-DRMed the rest of the books in the series.

I don't know why my key changed, but I can now verify that the new key really is different from any of my old keys.

ElleKayEm commented 5 years ago

I know my key never changed after they switched away from cc-based keys about five years ago -- at least, not yet. But others have reported theirs have during that time. I have also seen a couple people report that they had different keys for different apps. No clue why.

SuiriuS commented 5 years ago

Alright thanks, I freed my ebooks finally! I was able to get the key from the android app on a rooted android device, the file I needed was cchashdata.db as per the instructions in #814 Then just followed the instructions for the calibre plugin and done.

bfollowell commented 5 years ago

Like all of you, I ran into this problem just recently. I've used the same decryption key for years, but was recently forced by B&N to change my account password, which broke my key. No idea if changing my password back will fix things, but I doubt it. I'll give it a try though. Otherwise, I'll try to get my new key from my rooted Nook HD+.