mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-19 21:03:14 -07:00
a few fixes.
This commit is contained in:
parent
aea30191a5
commit
9d32800a50
1 changed files with 6 additions and 5 deletions
|
@ -78,21 +78,21 @@ def main(inputDirectory, inputName, inputCategory, inputHash):
|
||||||
copy_link(filePath, targetDirectory, useLink, outputDestination)
|
copy_link(filePath, targetDirectory, useLink, outputDestination)
|
||||||
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)
|
||||||
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:
|
||||||
copy_link(filePath, targetDirectory, useLink, outputDestination)
|
copy_link(filePath, targetDirectory, useLink, outputDestination)
|
||||||
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)
|
||||||
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:
|
||||||
extractor.extract(filePath, outputDestination)
|
extractor.extract(filePath, outputDestination)
|
||||||
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)
|
||||||
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
|
||||||
|
@ -185,8 +185,9 @@ if __name__ == "__main__":
|
||||||
metaContainer = (config.get("Torrent", "metaExtentions")).split(',') # .nfo,.sub,.srt
|
metaContainer = (config.get("Torrent", "metaExtentions")).split(',') # .nfo,.sub,.srt
|
||||||
|
|
||||||
cpsCategory = config.get("CouchPotato", "cpsCategory") # movie
|
cpsCategory = config.get("CouchPotato", "cpsCategory") # movie
|
||||||
sbCategory = config.get("SickBeard", "tvCategory") # tv
|
sbCategory = config.get("SickBeard", "sbCategory") # tv
|
||||||
categories.append(cpsCategory, sbCategory)
|
categories.append(cpsCategory)
|
||||||
|
categories.append(sbCategory)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
inputDirectory, inputName, inputCategory, inputHash = parse_args(clientAgent)
|
inputDirectory, inputName, inputCategory, inputHash = parse_args(clientAgent)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue