Skip to content

Commit

Permalink
tools v3.8
Browse files Browse the repository at this point in the history
version 2 - a minor change to one script.
  • Loading branch information
apprenticealf committed Mar 5, 2015
1 parent 4163d5c commit 529dd3f
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 4 deletions.
Binary file modified Calibre_Plugins/k4mobidedrm_plugin.zip
Binary file not shown.
7 changes: 6 additions & 1 deletion Calibre_Plugins/k4mobidedrm_plugin/k4mobidedrm_plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,9 @@ def main(argv=sys.argv):

# try with built in Kindle Info files
k4 = True
if sys.platform.startswith('linux'):
k4 = False
kInfoFiles = None
infile = args[0]
outdir = args[1]

Expand Down Expand Up @@ -267,6 +270,8 @@ def run(self, path_to_ebook):
import mobidedrm

k4 = True
if sys.platform.startswith('linux'):
k4 = False
pids = []
serials = []
kInfoFiles = []
Expand Down Expand Up @@ -366,4 +371,4 @@ def run(self, path_to_ebook):
return of.name

def customization_help(self, gui=False):
return 'Enter 10 character PIDs and/or Kindle serial numbers, separated by commas.'
return 'Enter 10 character PIDs and/or Kindle serial numbers, separated by commas.'
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,9 @@ def main(argv=sys.argv):

# try with built in Kindle Info files
k4 = True
if sys.platform.startswith('linux'):
k4 = False
kInfoFiles = None
infile = args[0]
outdir = args[1]

Expand Down Expand Up @@ -267,6 +270,8 @@ def run(self, path_to_ebook):
import mobidedrm

k4 = True
if sys.platform.startswith('linux'):
k4 = False
pids = []
serials = []
kInfoFiles = []
Expand Down Expand Up @@ -366,4 +371,4 @@ def run(self, path_to_ebook):
return of.name

def customization_help(self, gui=False):
return 'Enter 10 character PIDs and/or Kindle serial numbers, separated by commas.'
return 'Enter 10 character PIDs and/or Kindle serial numbers, separated by commas.'
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,9 @@ def main(argv=sys.argv):

# try with built in Kindle Info files
k4 = True
if sys.platform.startswith('linux'):
k4 = False
kInfoFiles = None
infile = args[0]
outdir = args[1]

Expand Down Expand Up @@ -267,6 +270,8 @@ def run(self, path_to_ebook):
import mobidedrm

k4 = True
if sys.platform.startswith('linux'):
k4 = False
pids = []
serials = []
kInfoFiles = []
Expand Down Expand Up @@ -366,4 +371,4 @@ def run(self, path_to_ebook):
return of.name

def customization_help(self, gui=False):
return 'Enter 10 character PIDs and/or Kindle serial numbers, separated by commas.'
return 'Enter 10 character PIDs and/or Kindle serial numbers, separated by commas.'
7 changes: 6 additions & 1 deletion KindleBooks_Tools/KindleBooks/lib/k4mobidedrm.py
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,9 @@ def main(argv=sys.argv):

# try with built in Kindle Info files
k4 = True
if sys.platform.startswith('linux'):
k4 = False
kInfoFiles = None
infile = args[0]
outdir = args[1]

Expand Down Expand Up @@ -267,6 +270,8 @@ def run(self, path_to_ebook):
import mobidedrm

k4 = True
if sys.platform.startswith('linux'):
k4 = False
pids = []
serials = []
kInfoFiles = []
Expand Down Expand Up @@ -366,4 +371,4 @@ def run(self, path_to_ebook):
return of.name

def customization_help(self, gui=False):
return 'Enter 10 character PIDs and/or Kindle serial numbers, separated by commas.'
return 'Enter 10 character PIDs and/or Kindle serial numbers, separated by commas.'

0 comments on commit 529dd3f

Please sign in to comment.