mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-19 21:03:14 -07:00
cleanup, unnecessary variables
This commit is contained in:
parent
51a0366906
commit
b01c6247dd
1 changed files with 1 additions and 7 deletions
|
@ -34,6 +34,7 @@ def main(inputDirectory, inputName, inputCategory, inputHash)
|
||||||
if category == inputCategory:
|
if category == inputCategory:
|
||||||
outputDestination = os.path.normpath(os.path.join(outputDestination, category, inputName))
|
outputDestination = os.path.normpath(os.path.join(outputDestination, category, inputName))
|
||||||
Logger.info("MAIN: Output directory set to: %s", outputDestination)
|
Logger.info("MAIN: Output directory set to: %s", outputDestination)
|
||||||
|
pass
|
||||||
else:
|
else:
|
||||||
Logger.error("MAIN: Could not match input category with defined categories, Exiting")
|
Logger.error("MAIN: Could not match input category with defined categories, Exiting")
|
||||||
sys.exit(-1)
|
sys.exit(-1)
|
||||||
|
@ -78,8 +79,6 @@ def main(inputDirectory, inputName, inputCategory, inputHash)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
Logger.error("MAIN: Failed to link file: %s", file)
|
Logger.error("MAIN: Failed to link file: %s", file)
|
||||||
Logger.debug e
|
Logger.debug e
|
||||||
linkFailed = True
|
|
||||||
|
|
||||||
elif fileExtention in metaContainer:
|
elif fileExtention in metaContainer:
|
||||||
Logger.info("MAIN: Found metadata file %s for file %s", fileExtention, filePath)
|
Logger.info("MAIN: Found metadata file %s for file %s", fileExtention, filePath)
|
||||||
try:
|
try:
|
||||||
|
@ -87,8 +86,6 @@ def main(inputDirectory, inputName, inputCategory, inputHash)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
Logger.error("MAIN: Failed to link file: %s", file)
|
Logger.error("MAIN: Failed to link file: %s", file)
|
||||||
Logger.debug e
|
Logger.debug e
|
||||||
linkFailed = True
|
|
||||||
|
|
||||||
elif fileExtention in compressedContainer:
|
elif fileExtention in compressedContainer:
|
||||||
Logger.info("MAIN: Found compressed archive %s for file %s", fileExtention, filePath)
|
Logger.info("MAIN: Found compressed archive %s for file %s", fileExtention, filePath)
|
||||||
try:
|
try:
|
||||||
|
@ -96,8 +93,6 @@ def main(inputDirectory, inputName, inputCategory, inputHash)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
Logger.warn("MAIN: Extraction failed for: %s", file)
|
Logger.warn("MAIN: Extraction failed for: %s", file)
|
||||||
Logger.debug e
|
Logger.debug e
|
||||||
extractFailed = True
|
|
||||||
|
|
||||||
else:
|
else:
|
||||||
Logger.debug("MAIN: Ignoring unknown filetype %s for file %s", fileExtention, filePath)
|
Logger.debug("MAIN: Ignoring unknown filetype %s for file %s", fileExtention, filePath)
|
||||||
continue
|
continue
|
||||||
|
@ -113,7 +108,6 @@ def main(inputDirectory, inputName, inputCategory, inputHash)
|
||||||
Logger.debug("MAIN: Removing sample file: %s", filePath)
|
Logger.debug("MAIN: Removing sample file: %s", filePath)
|
||||||
os.unlink(filePath) # remove samples
|
os.unlink(filePath) # remove samples
|
||||||
else:
|
else:
|
||||||
videofile = filePath
|
|
||||||
video2 = video2 + 1
|
video2 = video2 + 1
|
||||||
if video2 >= video and video2 > 0: # Check that all video files were moved
|
if video2 >= video and video2 > 0: # Check that all video files were moved
|
||||||
status = 0
|
status = 0
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue