From 4b6ca3cf2e7622f6b3b6550005a69a1cb352af88 Mon Sep 17 00:00:00 2001 From: evilhero Date: Sun, 13 Jan 2013 15:26:45 -0500 Subject: [PATCH] FIX: filescanner wouldn't pick up UPPERCASED extensions, IMP: filename extensions are now lowercased on every download --- mylar/PostProcessor.py | 2 +- mylar/updater.py | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/mylar/PostProcessor.py b/mylar/PostProcessor.py index 22021338..f9da9520 100755 --- a/mylar/PostProcessor.py +++ b/mylar/PostProcessor.py @@ -312,7 +312,7 @@ class PostProcessor(object): self._log("New Filename: " + nfilename, logger.DEBUG) src = self.nzb_folder + "/" + ofilename - dst = comlocation + "/" + nfilename + ext + dst = comlocation + "/" + nfilename + ext.lower() self._log("Source:" + src, logger.DEBUG) self._log("Destination:" + dst, logger.DEBUG) os.rename(self.nzb_folder + "/" + ofilename, self.nzb_folder + "/" + nfilename + ext) diff --git a/mylar/updater.py b/mylar/updater.py index 525b2e35..55fd457d 100755 --- a/mylar/updater.py +++ b/mylar/updater.py @@ -256,11 +256,11 @@ def forceRescan(ComicID): while (som < fcn): #counts get buggered up when the issue is the last field in the filename - ie. '50.cbr' #logger.fdebug("checking word - " + str(fcnew[som])) - if ".cbr" in fcnew[som]: + if ".cbr" in fcnew[som].lower(): fcnew[som] = fcnew[som].replace(".cbr", "") - elif ".cbz" in fcnew[som]: + elif ".cbz" in fcnew[som].lower(): fcnew[som] = fcnew[som].replace(".cbz", "") - if "(c2c)" in fcnew[som]: + if "(c2c)" in fcnew[som].lower(): fcnew[som] = fcnew[som].replace("(c2c)", " ") get_issue = shlex.split(str(fcnew[som])) if fcnew[som] != " ":