Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Formats > Workshop

Notices

Reply
 
Thread Tools Search this Thread
Old 07-16-2011, 04:06 AM   #16
pdurrant
The Grand Mouse
pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.
 
pdurrant's Avatar
 
Posts: 31,712
Karma: 87823216
Join Date: Jul 2007
Location: Norfolk, England
Device: NOOK ST GlowLight
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.
pdurrant is online now   Reply With Quote
Old 07-16-2011, 05:46 PM   #17
DaleDe
Grand Sorcerer
DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.
 
DaleDe's Avatar
 
Posts: 9,616
Karma: 5071748
Join Date: Aug 2007
Location: Grass Valley, CA
Device: EB 1150, EZ Reader, Literati, iPad 2
Quote:
Originally Posted by pdurrant View Post
I see what you mean. A good point, but I'm not happy about writing non-errors to the error stream, just to prevent them going to stdout.

I think it's probably best to just move the announcement to the Usage section. I'll do that and upload.
I would agree. It is better to have an option that just suppresses output that is not errors. Perhaps a verbose option to get all the progress messages, or if you want verbose by default an -s summary option.

Dale
DaleDe is offline   Reply With Quote
Old 07-16-2011, 05:56 PM   #18
pdurrant
The Grand Mouse
pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.
 
pdurrant's Avatar
 
Posts: 31,712
Karma: 87823216
Join Date: Jul 2007
Location: Norfolk, England
Device: NOOK ST GlowLight
Quote:
Originally Posted by DaleDe View Post
I would agree. It is better to have an option that just suppresses output that is not errors. Perhaps a verbose option to get all the progress messages, or if you want verbose by default an -s summary option.

Dale
Feel free to have a go at improving the output yourself. For now it's good enough for my purposes.

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.
pdurrant is online now   Reply With Quote
Old 04-21-2012, 02:35 PM   #19
Jesse Chisholm
Enthusiast
Jesse Chisholm actually enjoys Vogon poetry.Jesse Chisholm actually enjoys Vogon poetry.Jesse Chisholm actually enjoys Vogon poetry.Jesse Chisholm actually enjoys Vogon poetry.Jesse Chisholm actually enjoys Vogon poetry.Jesse Chisholm actually enjoys Vogon poetry.Jesse Chisholm actually enjoys Vogon poetry.Jesse Chisholm actually enjoys Vogon poetry.Jesse Chisholm actually enjoys Vogon poetry.Jesse Chisholm actually enjoys Vogon poetry.Jesse Chisholm actually enjoys Vogon poetry.
 
Jesse Chisholm's Avatar
 
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
Jesse Chisholm is offline   Reply With Quote
Old 08-03-2012, 09:16 AM   #20
grass
Junior Member
grass began at the beginning.
 
Posts: 1
Karma: 10
Join Date: Jul 2012
Device: Kindle 4
Thanks, neat script.
grass is offline   Reply With Quote
Old 08-03-2012, 12:59 PM   #21
pdurrant
The Grand Mouse
pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.
 
pdurrant's Avatar
 
Posts: 31,712
Karma: 87823216
Join Date: Jul 2007
Location: Norfolk, England
Device: NOOK ST GlowLight
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).
pdurrant is online now   Reply With Quote
Old 06-12-2013, 04:34 AM   #22
pgfiore
Member
pgfiore began at the beginning.
 
Posts: 21
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
pgfiore is offline   Reply With Quote
Old 06-12-2013, 05:12 AM   #23
pdurrant
The Grand Mouse
pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.
 
pdurrant's Avatar
 
Posts: 31,712
Karma: 87823216
Join Date: Jul 2007
Location: Norfolk, England
Device: NOOK ST GlowLight
Quote:
Originally Posted by pgfiore View Post
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
Umm.. exactly what it says

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.
pdurrant is online now   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

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


All times are GMT -4. The time now is 04:05 PM.


MobileRead.com is a privately owned, operated and funded community.