|
|
#1 |
|
The Grand Mouse
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 24,906
Karma: 74252384
Join Date: Jul 2007
Location: Norfolk, England
Device: Kindle 2; iPhone 3G; Bookeen Opus; NOOK ST GlowLight
|
DRM Check: Find out what DRM that ebook has got.
I've also done an Applescript wrapper for Mac users. The Applescript will handle multiple files/folders, and now displays the report on all files at the end of the run, with an option to save to a text file. Bug reports still welcome. This software (python script and AppleScript) are released with the Unlicence. See http://unlicense.org/ July 2011: DRM Check.py 1.01 — minor tweak to make batch operation easier. DRM Check Applescript 1.01 — proper batch operation.
__________________
Kai Lung Raises His Voice, now available at Amazon and BooksOnBoard A new collection of ‘Kai Lung’ stories by Ernest Bramah, including four previously unpublished stories. Books I've read in 2013, 2012, 2011, 2010 Last edited by pdurrant; 07-16-2011 at 04:04 AM. |
|
|
|
|
|
#2 |
|
Evangelist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 493
Karma: 137814
Join Date: Nov 2010
Location: NC, USA
Device: Kindle 3 (wifi), iPad
|
Thought I'd give it a test. Do I need to d/l both files in the box above? (Win 7 environment).
|
|
|
|
|
Enthusiast
|
|
|
|
#3 | |
|
The Grand Mouse
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 24,906
Karma: 74252384
Join Date: Jul 2007
Location: Norfolk, England
Device: Kindle 2; iPhone 3G; Bookeen Opus; NOOK ST GlowLight
|
Quote:
Whether your Windows machine is 64-bit or 32-bit, you should install the 32-bit version of ActivePython. Once installed, open up a command window and give the script a go.
__________________
Kai Lung Raises His Voice, now available at Amazon and BooksOnBoard A new collection of ‘Kai Lung’ stories by Ernest Bramah, including four previously unpublished stories. Books I've read in 2013, 2012, 2011, 2010 |
|
|
|
|
|
|
#4 |
|
Evangelist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 493
Karma: 137814
Join Date: Nov 2010
Location: NC, USA
Device: Kindle 3 (wifi), iPad
|
Thanks. I had v2.7/32 installed on my old HD before THE crash in December. I don't know if I reinstalled it since the plug-ins came along soon thereafter.
Looks like I need the 2nd file of the two in the OP. Edit: back again. I see an OSX file in each of the downloads. Sorry, I'm still not sure what I need. Edit2: nevermind. Looks like I just need the 2nd file and the drmcheck.py file in it. Last edited by speedlever; 02-14-2011 at 11:52 AM. |
|
|
|
|
|
#5 |
|
The Grand Mouse
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 24,906
Karma: 74252384
Join Date: Jul 2007
Location: Norfolk, England
Device: Kindle 2; iPhone 3G; Bookeen Opus; NOOK ST GlowLight
|
Yes, you just need the drmcheck.py. I've tweaked the .zip file to remove the non-essential MACOSX stuff.
__________________
Kai Lung Raises His Voice, now available at Amazon and BooksOnBoard A new collection of ‘Kai Lung’ stories by Ernest Bramah, including four previously unpublished stories. Books I've read in 2013, 2012, 2011, 2010 |
|
|
|
|
|
#6 |
|
You kids get off my lawn!
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,381
Karma: 3171160
Join Date: Aug 2007
Location: Columbus, Ohio
Device: Dell Axim, PRS350/650, Nook Glow
|
Can it be used to check if a book is DRM free, as well?
__________________
Some days, I guess there just aren't enough rocks -- Forrest Gump If you're interested in Dropbox, please consider using my link to earn us both free space! |
|
|
|
|
|
#7 |
|
The Grand Mouse
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 24,906
Karma: 74252384
Join Date: Jul 2007
Location: Norfolk, England
Device: Kindle 2; iPhone 3G; Bookeen Opus; NOOK ST GlowLight
|
Yes, it'll say if the file is unencrypted too. Give it a try and let me know what you think.
__________________
Kai Lung Raises His Voice, now available at Amazon and BooksOnBoard A new collection of ‘Kai Lung’ stories by Ernest Bramah, including four previously unpublished stories. Books I've read in 2013, 2012, 2011, 2010 |
|
|
|
|
|
#8 |
|
Evangelist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 493
Karma: 137814
Join Date: Nov 2010
Location: NC, USA
Device: Kindle 3 (wifi), iPad
|
Just tried it Paul. No luck. What did I do wrong?
My DOS days are too far back. Did I execute the CMD wrong? I don't know how to interpret the results.
Last edited by speedlever; 02-15-2011 at 10:41 AM. |
|
|
|
|
|
#9 |
|
The Grand Mouse
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 24,906
Karma: 74252384
Join Date: Jul 2007
Location: Norfolk, England
Device: Kindle 2; iPhone 3G; Bookeen Opus; NOOK ST GlowLight
|
You didn't give the full path of the ebook (missed the disk d:), and you need to add quotes to handle the space in the file path.
Try: drmcheck.py 'd:\Ebooks\Ebook downloads\Borders\Odyssey.epub'
__________________
Kai Lung Raises His Voice, now available at Amazon and BooksOnBoard A new collection of ‘Kai Lung’ stories by Ernest Bramah, including four previously unpublished stories. Books I've read in 2013, 2012, 2011, 2010 |
|
|
|
|
|
#10 | |
|
Fanatic
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 597
Karma: 230878
Join Date: Nov 2009
Device: many
|
Hi Paul,
Nicely done! Thanks for this script. KevinH Quote:
|
|
|
|
|
|
|
#11 | |
|
Evangelist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 493
Karma: 137814
Join Date: Nov 2010
Location: NC, USA
Device: Kindle 3 (wifi), iPad
|
Quote:
|
|
|
|
|
|
|
#12 |
|
Evangelist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 493
Karma: 137814
Join Date: Nov 2010
Location: NC, USA
Device: Kindle 3 (wifi), iPad
|
And here's an interesting result:
|
|
|
|
|
|
#13 |
|
The Grand Mouse
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 24,906
Karma: 74252384
Join Date: Jul 2007
Location: Norfolk, England
Device: Kindle 2; iPhone 3G; Bookeen Opus; NOOK ST GlowLight
|
That is interesting. The epub is zipped incorrectly, or possibly the mimetype file in the epub is missing entirely. That it comes up as "unencrypted" surprises me, as that implies that the code couldn't find the rights.xml or the encryption.xml files.
Luckily the drm removal plugin for Calibre, or the stand-alone Windows version of DeDRM will fix up the epub structure before removing any DRM. But perhaps I ought to try making the detection code a bit more robust. I can probably steal some code from the epubfix script that the DeDRM code uses. Thanks for the feedback. [EDIT: I've decided to leave the zipfix/epubfix code out of this, so I can still use unlicense. If you're doing batch operations, it's probably best to run zipfix before running drmcheck.]
__________________
Kai Lung Raises His Voice, now available at Amazon and BooksOnBoard A new collection of ‘Kai Lung’ stories by Ernest Bramah, including four previously unpublished stories. Books I've read in 2013, 2012, 2011, 2010 Last edited by pdurrant; 07-16-2011 at 03:37 AM. |
|
|
|
|
|
#14 |
|
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 377
Karma: 2191130
Join Date: Apr 2011
Device: pb360
|
Nice program! Thanks!
Would you consider changing all the print statements except the last to use: sys.stderr.write() instead of print? This would be usefull when the output from multiple calls is redirected to a file as in the following bash script: Code:
for name in *
do
echo $name >> results.txt
drmcheck.py $name >> results.txt
done
|
|
|
|
|
|
#15 | |
|
The Grand Mouse
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 24,906
Karma: 74252384
Join Date: Jul 2007
Location: Norfolk, England
Device: Kindle 2; iPhone 3G; Bookeen Opus; NOOK ST GlowLight
|
Quote:
I think it's probably best to just move the announcement to the Usage section. I'll do that and upload.
__________________
Kai Lung Raises His Voice, now available at Amazon and BooksOnBoard A new collection of ‘Kai Lung’ stories by Ernest Bramah, including four previously unpublished stories. Books I've read in 2013, 2012, 2011, 2010 |
|
|
|
|
![]() |
| Thread Tools | Search this Thread |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Found another DRM vs no DRM picture on the Net | Krystian Galaj | News | 29 | 03-18-2010 06:25 AM |
| ShineBook Mobile eBook Reader announced in Germany, reads both DRM-prc + DRM-ePub ... | K-Thom | News | 11 | 12-12-2009 06:50 AM |
| Erstes eBook, DRM? | Targor | E-Books | 2 | 05-15-2009 08:13 AM |
| DRM, or not DRM: that is the question (poll) | Alexander Turcic | News | 54 | 02-08-2009 01:27 PM |