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

Go Back   MobileRead Forums > E-Book Readers > Amazon Kindle

Notices

Reply
 
Thread Tools Search this Thread
Old 03-14-2012, 02:08 PM   #16
CRussel
Wizard
CRussel ought to be getting tired of karma fortunes by now.CRussel ought to be getting tired of karma fortunes by now.CRussel ought to be getting tired of karma fortunes by now.CRussel ought to be getting tired of karma fortunes by now.CRussel ought to be getting tired of karma fortunes by now.CRussel ought to be getting tired of karma fortunes by now.CRussel ought to be getting tired of karma fortunes by now.CRussel ought to be getting tired of karma fortunes by now.CRussel ought to be getting tired of karma fortunes by now.CRussel ought to be getting tired of karma fortunes by now.CRussel ought to be getting tired of karma fortunes by now.
 
CRussel's Avatar
 
Posts: 4,651
Karma: 30303932
Join Date: Jul 2010
Location: Sunshine Coast, BC
Device: Kindle PW, Fire HDX 8.9, Fire HD8.9, Fire 7HD, Surface 2
Given that it's a Python script, it's trivial to get that script to loop through a list of files. I haven't looked at Paul's script, but if you have problems getting it to work on multiple files, I'm confident that someone can help with that.
CRussel is offline   Reply With Quote
Old 03-14-2012, 03:26 PM   #17
alansplace
Wizard
alansplace ought to be getting tired of karma fortunes by now.alansplace ought to be getting tired of karma fortunes by now.alansplace ought to be getting tired of karma fortunes by now.alansplace ought to be getting tired of karma fortunes by now.alansplace ought to be getting tired of karma fortunes by now.alansplace ought to be getting tired of karma fortunes by now.alansplace ought to be getting tired of karma fortunes by now.alansplace ought to be getting tired of karma fortunes by now.alansplace ought to be getting tired of karma fortunes by now.alansplace ought to be getting tired of karma fortunes by now.alansplace ought to be getting tired of karma fortunes by now.
 
alansplace's Avatar
 
Posts: 3,848
Karma: 30043466
Join Date: Feb 2010
Location: USA, 33.938556° N, -117.271334° W
Device: Kindle 2, Kindle KB, Kindle PW 1 & 2, Kindle Voyage, Kindle Fire 2
Cool Check Kindle eBook DRM

Quote:
Originally Posted by pdurrant View Post
You might also find this more sophisticated script useful. It not only identifies the DRM, but also the kind of eBook.

Hmm.. come to think of it, it probably now needs updating for Print Replica and KF8 files... always something new!
Quote:
Originally Posted by sadievan View Post
Thanks for that Paul. Is there a way to do more than one file or must they be done individually.

Carol
Quote:
Originally Posted by CRussel View Post
Given that it's a Python script, it's trivial to get that script to loop through a list of files. I haven't looked at Paul's script, but if you have problems getting it to work on multiple files, I'm confident that someone can help with that.
Two other thoughts (I'd do one or both myself if I were a python programmer):

1. add multiple file capability, text file output and a gui.
2. add multiple file capability and make it a Calibre plug-in.

Also distribute it in Tools.
alansplace is offline   Reply With Quote
Old 03-14-2012, 04:08 PM   #18
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 37,596
Karma: 18390312
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Sony Reader PRS-650, iPad, nook STR
The problem (as I see it) is a lot of people who have only really used a GUI get lost with a command line (CMD, Shell, etc.). What someone needs to do is give the OP a step-by-step including CDing to the correct directory where the eBooks live. Just giving the command to run won't help since the OP doesn't even know how to get to the proper directory.
JSWolf is offline   Reply With Quote
Old 03-14-2012, 04:31 PM   #19
alansplace
Wizard
alansplace ought to be getting tired of karma fortunes by now.alansplace ought to be getting tired of karma fortunes by now.alansplace ought to be getting tired of karma fortunes by now.alansplace ought to be getting tired of karma fortunes by now.alansplace ought to be getting tired of karma fortunes by now.alansplace ought to be getting tired of karma fortunes by now.alansplace ought to be getting tired of karma fortunes by now.alansplace ought to be getting tired of karma fortunes by now.alansplace ought to be getting tired of karma fortunes by now.alansplace ought to be getting tired of karma fortunes by now.alansplace ought to be getting tired of karma fortunes by now.
 
alansplace's Avatar
 
Posts: 3,848
Karma: 30043466
Join Date: Feb 2010
Location: USA, 33.938556° N, -117.271334° W
Device: Kindle 2, Kindle KB, Kindle PW 1 & 2, Kindle Voyage, Kindle Fire 2
Cool Check Kindle eBook DRM

Quote:
Originally Posted by Big McLargeHuge View Post
Do you see that when you open the command window it's in the subdirectory 'C:\Users\Big McLh>'? You need both 'kindledrm.py and the file you're checking in that subdirectory. Then type 'kindledrm.py thefilename.azw' and press 'ENTER'.
alansplace is offline   Reply With Quote
Old 03-14-2012, 04:56 PM   #20
pdurrant
The Ghost 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: 32,141
Karma: 88588888
Join Date: Jul 2007
Location: Norfolk, England
Device: NOOK ST GlowLight
Quote:
Originally Posted by sadievan View Post
Thanks for that Paul. Is there a way to do more than one file or must they be done individually.

Carol
If you have a Mac, you can use the Applescript wrapper and drag & drop as many as you like at once, or even just the folder containing the ebooks.

On Windows or Linux, you'd have to write some kind of batch file wrapper.
pdurrant is offline   Reply With Quote
Old 03-14-2012, 06:54 PM   #21
sadievan
Wizard
sadievan ought to be getting tired of karma fortunes by now.sadievan ought to be getting tired of karma fortunes by now.sadievan ought to be getting tired of karma fortunes by now.sadievan ought to be getting tired of karma fortunes by now.sadievan ought to be getting tired of karma fortunes by now.sadievan ought to be getting tired of karma fortunes by now.sadievan ought to be getting tired of karma fortunes by now.sadievan ought to be getting tired of karma fortunes by now.sadievan ought to be getting tired of karma fortunes by now.sadievan ought to be getting tired of karma fortunes by now.sadievan ought to be getting tired of karma fortunes by now.
 
sadievan's Avatar
 
Posts: 1,637
Karma: 3000000
Join Date: Nov 2010
Device: Kindle3, iPhone, Kindle Fire
Quote:
Originally Posted by pdurrant View Post
If you have a Mac, you can use the Applescript wrapper and drag & drop as many as you like at once, or even just the folder containing the ebooks.

On Windows or Linux, you'd have to write some kind of batch file wrapper.
Am on Windows 7. I tried

c:\drm check>drmcheck.py "c:\ebooks\*.*"

but I guess that was wrong.

Carol
sadievan is offline   Reply With Quote
Old 03-14-2012, 06:59 PM   #22
wallcraft
reader
wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.
 
wallcraft's Avatar
 
Posts: 6,979
Karma: 5183568
Join Date: Mar 2006
Location: Mississippi, USA
Device: Kindle 3 and Fire
Quote:
Originally Posted by sadievan View Post
I tried

c:\drm check>drmcheck.py "c:\ebooks\*.*"
Try:
Code:
echo off
for %a in (c:\ebooks\*.*) do kindledrm "%a"
echo on
wallcraft is offline   Reply With Quote
Old 03-14-2012, 07:12 PM   #23
alansplace
Wizard
alansplace ought to be getting tired of karma fortunes by now.alansplace ought to be getting tired of karma fortunes by now.alansplace ought to be getting tired of karma fortunes by now.alansplace ought to be getting tired of karma fortunes by now.alansplace ought to be getting tired of karma fortunes by now.alansplace ought to be getting tired of karma fortunes by now.alansplace ought to be getting tired of karma fortunes by now.alansplace ought to be getting tired of karma fortunes by now.alansplace ought to be getting tired of karma fortunes by now.alansplace ought to be getting tired of karma fortunes by now.alansplace ought to be getting tired of karma fortunes by now.
 
alansplace's Avatar
 
Posts: 3,848
Karma: 30043466
Join Date: Feb 2010
Location: USA, 33.938556° N, -117.271334° W
Device: Kindle 2, Kindle KB, Kindle PW 1 & 2, Kindle Voyage, Kindle Fire 2
Cool Check Kindle eBook DRM

Quote:
Originally Posted by sadievan View Post
Am on Windows 7. I tried

c:\drm check>drmcheck.py "c:\ebooks\*.*"

but I guess that was wrong.

Carol
Yeah, I tried "*.azw" and it was no good, I don't think either the script or python likes "*". It said 'NOT MOBI', whatever that means?!
alansplace is offline   Reply With Quote
Old 03-14-2012, 07:21 PM   #24
alansplace
Wizard
alansplace ought to be getting tired of karma fortunes by now.alansplace ought to be getting tired of karma fortunes by now.alansplace ought to be getting tired of karma fortunes by now.alansplace ought to be getting tired of karma fortunes by now.alansplace ought to be getting tired of karma fortunes by now.alansplace ought to be getting tired of karma fortunes by now.alansplace ought to be getting tired of karma fortunes by now.alansplace ought to be getting tired of karma fortunes by now.alansplace ought to be getting tired of karma fortunes by now.alansplace ought to be getting tired of karma fortunes by now.alansplace ought to be getting tired of karma fortunes by now.
 
alansplace's Avatar
 
Posts: 3,848
Karma: 30043466
Join Date: Feb 2010
Location: USA, 33.938556° N, -117.271334° W
Device: Kindle 2, Kindle KB, Kindle PW 1 & 2, Kindle Voyage, Kindle Fire 2
Cool Check Kindle eBook DRM

Quote:
Originally Posted by wallcraft View Post
Try:
Code:
echo off
for %a in (c:\ebooks\*.*) do kindledrm "%a"
echo on
That worked like a champ. So in addition to that how can one redirect the output to a text file?
alansplace is offline   Reply With Quote
Old 03-14-2012, 07:28 PM   #25
ixtab
(offline)
ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.
 
ixtab's Avatar
 
Posts: 2,903
Karma: 6677557
Join Date: Dec 2011
Device: K3, K4, K5, KPW, KPW2
Quote:
Originally Posted by alansplace View Post
That worked like a champ. So in addition to that how can one redirect the output to a text file?
Try this:
Code:
echo off
for %a in (c:\ebooks\*.*) do kindledrm "%a" >> out.txt
echo on
NOTE: I don't have windows, so I'm just guessing. It should work, but I can't guarantee it.
ixtab is offline   Reply With Quote
Old 03-14-2012, 07:44 PM   #26
alansplace
Wizard
alansplace ought to be getting tired of karma fortunes by now.alansplace ought to be getting tired of karma fortunes by now.alansplace ought to be getting tired of karma fortunes by now.alansplace ought to be getting tired of karma fortunes by now.alansplace ought to be getting tired of karma fortunes by now.alansplace ought to be getting tired of karma fortunes by now.alansplace ought to be getting tired of karma fortunes by now.alansplace ought to be getting tired of karma fortunes by now.alansplace ought to be getting tired of karma fortunes by now.alansplace ought to be getting tired of karma fortunes by now.alansplace ought to be getting tired of karma fortunes by now.
 
alansplace's Avatar
 
Posts: 3,848
Karma: 30043466
Join Date: Feb 2010
Location: USA, 33.938556° N, -117.271334° W
Device: Kindle 2, Kindle KB, Kindle PW 1 & 2, Kindle Voyage, Kindle Fire 2
Cool Check Kindle eBook DRM

Quote:
Originally Posted by ixtab View Post
Try this:
Code:
echo off
for %a in (c:\ebooks\*.*) do kindledrm "%a" >> out.txt
echo on
NOTE: I don't have windows, so I'm just guessing. It should work, but I can't guarantee it.


First off, the command needs to be 'kindledrm.py' (forgot to mention this earlier).

The redirect operator needs to be a single '>', not '>>'.

When it is done the output text file only has the last of the processed file listed, so I assume that its re-writing the file on each pass of the loop instead of appending to it.
alansplace is offline   Reply With Quote
Old 03-14-2012, 07:46 PM   #27
ixtab
(offline)
ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.
 
ixtab's Avatar
 
Posts: 2,903
Karma: 6677557
Join Date: Dec 2011
Device: K3, K4, K5, KPW, KPW2
Quote:
Originally Posted by alansplace View Post


First off, the command needs to be 'kindledrm.py' (forgot to mention this earlier).

The redirect operator needs to be a single '>', not '>>'.

When it is done the output text file only has the last of the processed file listed, so I assume that its re-writing the file on each pass of the loop instead of appending to it.
Yes, because you're using ">" instead of ">>"
> overwrites, >> appends.
ixtab is offline   Reply With Quote
Old 03-14-2012, 07:51 PM   #28
sadievan
Wizard
sadievan ought to be getting tired of karma fortunes by now.sadievan ought to be getting tired of karma fortunes by now.sadievan ought to be getting tired of karma fortunes by now.sadievan ought to be getting tired of karma fortunes by now.sadievan ought to be getting tired of karma fortunes by now.sadievan ought to be getting tired of karma fortunes by now.sadievan ought to be getting tired of karma fortunes by now.sadievan ought to be getting tired of karma fortunes by now.sadievan ought to be getting tired of karma fortunes by now.sadievan ought to be getting tired of karma fortunes by now.sadievan ought to be getting tired of karma fortunes by now.
 
sadievan's Avatar
 
Posts: 1,637
Karma: 3000000
Join Date: Nov 2010
Device: Kindle3, iPhone, Kindle Fire
Quote:
Originally Posted by alansplace View Post
That worked like a champ. So in addition to that how can one redirect the output to a text file?
OK. Exactly what did you type in the cmd line. I'm not having any luck.

Carol
sadievan is offline   Reply With Quote
Old 03-14-2012, 07:57 PM   #29
alansplace
Wizard
alansplace ought to be getting tired of karma fortunes by now.alansplace ought to be getting tired of karma fortunes by now.alansplace ought to be getting tired of karma fortunes by now.alansplace ought to be getting tired of karma fortunes by now.alansplace ought to be getting tired of karma fortunes by now.alansplace ought to be getting tired of karma fortunes by now.alansplace ought to be getting tired of karma fortunes by now.alansplace ought to be getting tired of karma fortunes by now.alansplace ought to be getting tired of karma fortunes by now.alansplace ought to be getting tired of karma fortunes by now.alansplace ought to be getting tired of karma fortunes by now.
 
alansplace's Avatar
 
Posts: 3,848
Karma: 30043466
Join Date: Feb 2010
Location: USA, 33.938556° N, -117.271334° W
Device: Kindle 2, Kindle KB, Kindle PW 1 & 2, Kindle Voyage, Kindle Fire 2
Cool Check Kindle eBook DRM

Quote:
Originally Posted by ixtab View Post
Yes, because you're using ">" instead of ">>"
> overwrites, >> appends.
I got an error with that so I tried the single and it worked like I said. I suppose the error was complaining that the output file didn't exist, however it created one. Then it it kinda' worked.

Anyway, now it works like a champ,

This woke the decades old programming part of my brain, at least a tiny bit.
alansplace is offline   Reply With Quote
Old 03-14-2012, 08:08 PM   #30
sadievan
Wizard
sadievan ought to be getting tired of karma fortunes by now.sadievan ought to be getting tired of karma fortunes by now.sadievan ought to be getting tired of karma fortunes by now.sadievan ought to be getting tired of karma fortunes by now.sadievan ought to be getting tired of karma fortunes by now.sadievan ought to be getting tired of karma fortunes by now.sadievan ought to be getting tired of karma fortunes by now.sadievan ought to be getting tired of karma fortunes by now.sadievan ought to be getting tired of karma fortunes by now.sadievan ought to be getting tired of karma fortunes by now.sadievan ought to be getting tired of karma fortunes by now.
 
sadievan's Avatar
 
Posts: 1,637
Karma: 3000000
Join Date: Nov 2010
Device: Kindle3, iPhone, Kindle Fire
Quote:
Originally Posted by wallcraft View Post
Try:
Code:
echo off
for %a in (c:\ebooks\*.*) do kindledrm "%a"
echo on
Tried this

C:\Users\Carol\DRM Check>drmcheck.py "c:\ebooks\%a"
Traceback (most recent call last):
File "C:\Users\Carol\DRM Check\drmcheck.py", line 211, in <module>
sys.exit(main())
File "C:\Users\Carol\DRM Check\drmcheck.py", line 113, in main
infileobject = file(infile,'rb')
IOError: [Errno 2] No such file or directory: 'c:\\ebooks\\%a'

What am I doing wrong.

Carol
sadievan is offline   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
DRM Check: Find out what DRM that ebook has got. pdurrant Workshop 25 10-07-2014 03:49 AM
.html ebook Security check me Xabache Other formats 0 09-17-2011 02:14 AM
How can you tell if the Kindle Store ebook has DRM? rock Kindle Formats 3 12-14-2009 05:55 PM
ShineBook Mobile eBook Reader announced in Germany, reads both DRM-prc + DRM-ePub ... K-Thom News 11 12-12-2009 06:50 AM
Please check ebook template AlexBell Workshop 9 07-24-2009 02:12 AM


All times are GMT -4. The time now is 12:26 AM.


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