Merge branch 'nightly' of https://github.com/clinton-hall/nzbToMedia into nightly

This commit is contained in:
clinton-hall 2018-12-05 20:16:00 +13:00
commit 1dfa9092ef
9 changed files with 185 additions and 115 deletions

View file

@ -122,7 +122,7 @@ def extract(filePath, outputDestination):
cmd2.append("-p-") # don't prompt for password.
p = Popen(cmd2, stdout=devnull, stderr=devnull, startupinfo=info) # should extract files fine.
res = p.wait()
if (res >= 0 and os.name == 'nt') or res == 0: # for windows chp returns process id if successful or -1*Error code. Linux returns 0 for successful.
if res == 0: # Both Linux and Windows return 0 for successful.
core.logger.info("EXTRACTOR: Extraction was successful for {file} to {destination}".format
(file=filePath, destination=outputDestination))
success = 1