mirror of
https://github.com/evilhero/mylar
synced 2024-12-26 01:26:50 +00:00
FIX: filescanner wouldn't pick up UPPERCASED extensions, IMP: filename extensions are now lowercased on every download
This commit is contained in:
parent
99d5ebb41c
commit
4b6ca3cf2e
2 changed files with 4 additions and 4 deletions
|
@ -312,7 +312,7 @@ class PostProcessor(object):
|
||||||
self._log("New Filename: " + nfilename, logger.DEBUG)
|
self._log("New Filename: " + nfilename, logger.DEBUG)
|
||||||
|
|
||||||
src = self.nzb_folder + "/" + ofilename
|
src = self.nzb_folder + "/" + ofilename
|
||||||
dst = comlocation + "/" + nfilename + ext
|
dst = comlocation + "/" + nfilename + ext.lower()
|
||||||
self._log("Source:" + src, logger.DEBUG)
|
self._log("Source:" + src, logger.DEBUG)
|
||||||
self._log("Destination:" + dst, logger.DEBUG)
|
self._log("Destination:" + dst, logger.DEBUG)
|
||||||
os.rename(self.nzb_folder + "/" + ofilename, self.nzb_folder + "/" + nfilename + ext)
|
os.rename(self.nzb_folder + "/" + ofilename, self.nzb_folder + "/" + nfilename + ext)
|
||||||
|
|
|
@ -256,11 +256,11 @@ def forceRescan(ComicID):
|
||||||
while (som < fcn):
|
while (som < fcn):
|
||||||
#counts get buggered up when the issue is the last field in the filename - ie. '50.cbr'
|
#counts get buggered up when the issue is the last field in the filename - ie. '50.cbr'
|
||||||
#logger.fdebug("checking word - " + str(fcnew[som]))
|
#logger.fdebug("checking word - " + str(fcnew[som]))
|
||||||
if ".cbr" in fcnew[som]:
|
if ".cbr" in fcnew[som].lower():
|
||||||
fcnew[som] = fcnew[som].replace(".cbr", "")
|
fcnew[som] = fcnew[som].replace(".cbr", "")
|
||||||
elif ".cbz" in fcnew[som]:
|
elif ".cbz" in fcnew[som].lower():
|
||||||
fcnew[som] = fcnew[som].replace(".cbz", "")
|
fcnew[som] = fcnew[som].replace(".cbz", "")
|
||||||
if "(c2c)" in fcnew[som]:
|
if "(c2c)" in fcnew[som].lower():
|
||||||
fcnew[som] = fcnew[som].replace("(c2c)", " ")
|
fcnew[som] = fcnew[som].replace("(c2c)", " ")
|
||||||
get_issue = shlex.split(str(fcnew[som]))
|
get_issue = shlex.split(str(fcnew[som]))
|
||||||
if fcnew[som] != " ":
|
if fcnew[som] != " ":
|
||||||
|
|
Loading…
Reference in a new issue