View Single Post
Old 02-06-2012, 03:10 PM   #2
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 28,709
Karma: 205039118
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Quote:
Originally Posted by chrisridd View Post
According to the wiki here, B&N have another DRM scheme. It'd be nice to be able to detect that DRM too, but B&N don't sell to the UK so I can't see what they do.

Can anyone offer any suggestions (or sample books!) showing what B&N's DRM looks like? We don't have to/want to decrypt it, just work out that it is from B&N.
B&N's DRM is a bastardized version of the Adobe Adept DRM, so depending on how/what you're using to identify Adobe's DRM, your program is probably already lumping B&N DRM'ed books in with the rest of the Adobe DRMed stuff.

Distinguishing between the two may prove difficult programmatically. Possibly take a look at the "operatorUrl" element of the rights.xml file (which they both have—and it's in the same format). I can't swear that all B&N books have the exact same url listed for that element, but barnesandnoble.com seems to be somewhere in there in the examples I have. I know the regular Adobe epubs can have all kinds different fulfillment urls in that "operatorURL" element.

Good luck!

EDIT: Taking a quick peek at your code... yes.... you're currently including B&N books right along with the rest of the Adept DRM, since both will match:
Code:
// Adobe Adept DRM has "META-INF/rights.xml", containing <licenseURL> with an adobe.com URL.

Last edited by DiapDealer; 02-06-2012 at 03:27 PM.
DiapDealer is offline   Reply With Quote