![]() |
#16 |
The Grand Mouse 高貴的老鼠
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 73,890
Karma: 315126578
Join Date: Jul 2007
Location: Norfolk, England
Device: Kindle Oasis
|
New version 1.01:
The Python script now only outputs the information about the file. To see the description just run the script without paramteters. The AppleScript now does batch operation properly, with an option to save the report. The authorship notices have been updated to emphasize that this code is under unlicense, and is in the public domain, not copyrighted. |
![]() |
![]() |
![]() |
#17 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,470
Karma: 13095790
Join Date: Aug 2007
Location: Grass Valley, CA
Device: EB 1150, EZ Reader, Literati, iPad 2 & Air 2, iPhone 7
|
Quote:
Dale |
|
![]() |
![]() |
Advert | |
|
![]() |
#18 | |
The Grand Mouse 高貴的老鼠
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 73,890
Karma: 315126578
Join Date: Jul 2007
Location: Norfolk, England
Device: Kindle Oasis
|
Quote:
If you come up with some nice improvements, post them here and I'll add them back into the first post — if you don't mind them being under unlicense. |
|
![]() |
![]() |
![]() |
#19 |
Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 27
Karma: 56200
Join Date: Jul 2011
Location: California
Device: none
|
It _looks_ like there is a bug in the drmcheck.py file; at least in the version I downloaded.
In version 1.01, on line 72 it has: cmpdata += unprocessed But I think that puts the not yet processed bytes on the wrong end of the buffer. Shouldn't that read: cmpdata = unprocessed + cmpdata The worst effect I can see is failing to recognize the location of the encrypyedKey. And that would only happen if the cmpdata were larger than _MAX_SIZE which may never happen for an eBooks rights.xml file. But in case you also use this code in other scripts, it might bite. -Jesse Chisholm |
![]() |
![]() |
![]() |
#20 |
Junior Member
![]() Posts: 1
Karma: 10
Join Date: Jul 2012
Device: Kindle 4
|
Thanks, neat script.
|
![]() |
![]() |
Advert | |
|
![]() |
#21 |
The Grand Mouse 高貴的老鼠
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 73,890
Karma: 315126578
Join Date: Jul 2007
Location: Norfolk, England
Device: Kindle Oasis
|
Hmm... this could probably do with updating to also recognise KF8 files in various configurations. No time now though.
(KF8 wil be incorrectly identified as MObi). |
![]() |
![]() |
![]() |
#22 |
Enthusiast
![]() Posts: 34
Karma: 10
Join Date: Dec 2012
Location: Italy
Device: Kindle
|
Thank for your stuff, good job. A curiosity, an Amazon book reports "Mobipocket ebook, HUFF/CDIC compression encrypted with current encrytion method"... What does "current method" mean? Ciao
|
![]() |
![]() |
![]() |
#23 | |
The Grand Mouse 高貴的老鼠
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 73,890
Karma: 315126578
Join Date: Jul 2007
Location: Norfolk, England
Device: Kindle Oasis
|
Quote:
![]() Some early Mobipocket books used a slightly different method. All current Mobipocket and Kindle ebooks (except Topaz) use the same encryption method, it's just the way that the encryption key is generated that changes. |
|
![]() |
![]() |
![]() |
#24 |
Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 38
Karma: 66952
Join Date: Oct 2014
Location: Baton Rouge, LA
Device: Kindle Paperwhite
|
I realize this is a reply to a 3-year old post, but I had no luck with the app.
Running OS X Mavericks on a mid-2010 Macbook Pro, which has Python already installed on it. On attempting to open the unzipped app file I got the following message: "DRM Check 1.0.1app” is damaged and can’t be opened. You should move it to the trash. I also have a Windows 7 machine I tried both files on but as I'm less than a rank novice at programming language I got discouraged when running the DRM check py a command window both opened and disappeared, and quickly, which was why I figured I'd try it out on my Mac. Have also tried numerous web searches for a way or ways to detect or check for DRM in epubs/ebooks with zilch results. There are boo coo hits on the *removal* of it (DRM) but that's not what I'm looking for (that's what Apprentice Alf is for, right?). Sorry to be a pest oh Ghost Mouse, but have you any other suggestions for how best to check/detect for DRM in pubs? |
![]() |
![]() |
![]() |
#25 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,467
Karma: 78880114
Join Date: Nov 2007
Location: Toronto
Device: Libra H2O, Libra Colour
|
Well.... On windows best bet is to just open a command prompt where you will see a plain looking prompt; in my case
Code:
c:\users\peter Code:
calibre-debug drmcheck.py followed_by_name_of_epub_file_to_check Code:
calibre-debug d:\Downloads\drmcheck.py "Documents\My Digital Editions\$20_Per_Gallon.epub" ePub ebook, Adobe Digital Editions encryption. |
![]() |
![]() |
![]() |
#26 | |
The Grand Mouse 高貴的老鼠
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 73,890
Karma: 315126578
Join Date: Jul 2007
Location: Norfolk, England
Device: Kindle Oasis
|
Quote:
Good luck! |
|
![]() |
![]() |
![]() |
#27 |
Junior Member
![]() Posts: 5
Karma: 10
Join Date: Mar 2023
Device: Oasis 3
|
Is there an up-to-date version of this available?
|
![]() |
![]() |
![]() |
#28 |
The Grand Mouse 高貴的老鼠
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 73,890
Karma: 315126578
Join Date: Jul 2007
Location: Norfolk, England
Device: Kindle Oasis
|
No. And with recent versions of Mac OS not having python installed, I doubt I'll update it as an AppleScript app. I'm very happy for anyone to use any part of it , say in a calibre plugin-in.
|
![]() |
![]() |
![]() |
#29 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,657
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Can this script be made to work with KF8 & KFX?
Last edited by JSWolf; 10-28-2024 at 09:34 AM. |
![]() |
![]() |
![]() |
#30 |
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,882
Karma: 168959602
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
To quote the first message in this thread: Mobipocket, Topaz, PalmDoc, eReader and ePubs.
Given that Amazon announced late in October, 2011 they were introducing their new KF8 format and the files in the first post are from July, 2011, how likely do you think that it is that KF8 or KFX are supported? |
![]() |
![]() |
![]() |
|
![]() |
||||
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 |