View Single Post
  #19  
Old 08-20-2010, 12:54 PM
slayda slayda is offline
Junior Member
 
Join Date: May 2010
Posts: 12
slayda is on a distinguished road
Default

Re: skindle - remove DRM from KindleForPC ebooks (mobi and topaz)


Quote:
Originally Posted by Stream Recorder View Post
Please post them here.
The two work together. Note; being lazy I just copied/modified a couple that I had for mobidedrm.py. With the skindle pair you need to be sure there is only one book of the type addressed in the folder. Otherwise you'll only end up with the last one deDRMed. I call them FixAllSAWZ.cmd (which calls the second one) & FixSAZWbk.cmd (which actually removes the DRM from a .azw ebook, puts the original into a foldee "originals" and puts the .prc (deDRMed mobipocket file) into the folder "NoDRM" where it is called temp.prc. You can rename it now or later in Calibre.

FixAllSAZW.cmd

for %%b in ("*.azw") do FixSAZWbk %%b

Finds all files in the current folder that have the .azw extension & calls FixSAZWbk.cmd. (be sure there is only .azw file in the folder)



FixSAZWbk.cmd

@echo off
skindle -i %1 -o temp.prc
move %1 Originals\
move /y temp.prc NoDRM\


Takes the output .azw file from FixAllSAWZ.cmd and uses skindle to remove the DRM and puts the deDRMed ebook (now called temp.prc) into the NoDRM folder & the original .azw file into the folder called Originals (assumes you have folders called NoDRM & Originals).


These need to be cleaned up to be more efficient (and I may do that later so that you end up with better file names based on the input file name and works with multiple files ) but for now they work - I usually only have one book to deDRM when I use these. Just double click on the file FixAllSAZW.cmd & you'll generate the file "temp.prc" in the folder "NoDRM" & move the original ebook file into the folder "Originals".

Remember that skindle does not want to find blanks in the ebook file name, so fix that before running these scripts.

Also remember these assume that you have skindle working properly.

Enjoy.

EDIT#1: By changing the "temp" (two places in FixSAZWbk.cmd) to %1 you can deDRM all the .azw files in your working folder with one running of the script. Your files in the NoDRM folder will look like "OriginalFile.azw.prc" & will be in the Mobipocket format.

Last edited by slayda : 08-20-2010 at 05:36 PM.
Reply With Quote