mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-07-15 09:42:54 -07:00
fixed syntax error
This commit is contained in:
parent
48050f39dd
commit
bed71482d0
1 changed files with 1 additions and 1 deletions
|
@ -117,7 +117,7 @@ def extract(filePath, outputDestination):
|
||||||
os.chdir(outputDestination) # Not all unpack commands accept full paths, so just extract into this directory
|
os.chdir(outputDestination) # Not all unpack commands accept full paths, so just extract into this directory
|
||||||
try: # now works same for nt and *nix
|
try: # now works same for nt and *nix
|
||||||
cmd.append(filePath) # add filePath to final cmd arg.
|
cmd.append(filePath) # add filePath to final cmd arg.
|
||||||
p = Popen(cmd)) # should extract files fine.
|
p = Popen(cmd) # should extract files fine.
|
||||||
res = p.wait()
|
res = p.wait()
|
||||||
if res >= 0: # for windows chp returns process id if successful or -1*Error code. Linus returns 0 for successful.
|
if res >= 0: # for windows chp returns process id if successful or -1*Error code. Linus returns 0 for successful.
|
||||||
Logger.info("EXTRACTOR: Extraction was successful for %s to %s", filePath, outputDestination)
|
Logger.info("EXTRACTOR: Extraction was successful for %s to %s", filePath, outputDestination)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue