diff --git a/scripts/find_dupes.py b/scripts/find_dupes.py index 24b8d8e..37531e3 100755 --- a/scripts/find_dupes.py +++ b/scripts/find_dupes.py @@ -28,7 +28,7 @@ def main(): comic_list = [] max_name_len = 2 for filename in filelist: - ca = ComicArchive(filename, settings ) + ca = ComicArchive(filename, settings.rar_exe_path ) if ca.seemsToBeAComicArchive() and ca.hasMetadata( style ): max_name_len = max ( max_name_len, len(filename)) fmt_str = u"{{0:{0}}}".format(max_name_len) @@ -74,7 +74,7 @@ def main(): print "Found {0} duplicate sets".format( len(dupe_set_list)) for dupe_set in dupe_set_list: - ca = ComicArchive(dupe_set[0], settings ) + ca = ComicArchive(dupe_set[0], settings.rar_exe_path ) md = ca.readMetadata( style ) print "{0} #{1} ({2})".format( md.series, md.issue, md.year ) for filename in dupe_set: diff --git a/scripts/inventory.py b/scripts/inventory.py index f7192cb..4825602 100755 --- a/scripts/inventory.py +++ b/scripts/inventory.py @@ -43,7 +43,7 @@ def main(): metadata_list = [] max_name_len = 2 for filename in filelist: - ca = ComicArchive(filename, settings ) + ca = ComicArchive(filename, settings.rar_exe_path ) if ca.hasMetadata( style ): #make a list of paired filenames and metadata objects metadata_list.append((filename, ca.readMetadata( style ))) diff --git a/scripts/make_links.py b/scripts/make_links.py index e56c4a4..edfa056 100755 --- a/scripts/make_links.py +++ b/scripts/make_links.py @@ -66,7 +66,7 @@ def main(): comic_list = [] max_name_len = 2 for filename in filelist: - ca = ComicArchive(filename, settings ) + ca = ComicArchive(filename, settings.rar_exe_path ) if ca.seemsToBeAComicArchive() and ca.hasMetadata( style ): comic_list.append((filename, ca.readMetadata( style ))) diff --git a/scripts/name_fixer.py b/scripts/name_fixer.py index 7f692ab..193f382 100755 --- a/scripts/name_fixer.py +++ b/scripts/name_fixer.py @@ -99,7 +99,7 @@ def main(): max_name_len = 2 fmt_str = "" for filename in filelist: - ca = ComicArchive(filename, settings ) + ca = ComicArchive(filename, settings.rar_exe_path ) # do we care if it already has metadata? if ca.seemsToBeAComicArchive() and not ca.hasMetadata( style ): diff --git a/scripts/remove_ads.py b/scripts/remove_ads.py index fbfe04f..38aa324 100755 --- a/scripts/remove_ads.py +++ b/scripts/remove_ads.py @@ -51,7 +51,7 @@ def main(): modify_list = [] for filename in filelist: - ca = ComicArchive(filename, settings ) + ca = ComicArchive(filename, settings.rar_exe_path ) if (ca.isZip or ca.isRar()) and ca.hasMetadata( style ): md = ca.readMetadata( style ) if len(md.pages) != 0: @@ -63,7 +63,7 @@ def main(): #now actually process those files for filename,md in modify_list: - ca = ComicArchive(filename, settings ) + ca = ComicArchive(filename, settings.rar_exe_path ) curr_folder = os.path.dirname( filename ) curr_subfolder = os.path.join( curr_folder, subfolder_name ) @@ -140,7 +140,7 @@ def main(): print "Done!".format(filename) # Create a new archive object for the new file, and write the old CIX data, with new page info - ca = ComicArchive( filename, settings ) + ca = ComicArchive( filename, settings.rar_exe_path ) md.pages = new_pages ca.writeMetadata( style, md ) diff --git a/scripts/shrink.py b/scripts/shrink.py index edc7d19..2e58a65 100644 --- a/scripts/shrink.py +++ b/scripts/shrink.py @@ -52,7 +52,7 @@ def main(): fmt_str = u"{{0:{0}}}".format(max_name_len) for filename in filelist: - ca = ComicArchive(filename, settings ) + ca = ComicArchive(filename, settings.rar_exe_path ) if (ca.seemsToBeAComicArchive()): # Check the images in the file, see if we need to reduce any @@ -180,7 +180,7 @@ def main(): # Create a new archive object for the new file, and write the old CIX data, w/o page info if cix_md is not None: - ca = ComicArchive( filename, settings ) + ca = ComicArchive( filename, settings.rar_exe_path ) cix_md.pages = [] ca.writeCIX( cix_md ) diff --git a/scripts/validate_cover.py b/scripts/validate_cover.py index 468201e..8f9278a 100755 --- a/scripts/validate_cover.py +++ b/scripts/validate_cover.py @@ -44,7 +44,7 @@ def main(): print >> sys.stderr, filename + ": not found!" return - ca = ComicArchive(filename, settings ) + ca = ComicArchive(filename, settings.rar_exe_path ) if not ca.seemsToBeAComicArchive(): print >> sys.stderr, "Sorry, but "+ filename + " is not a comic archive!" return