mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-07-16 02:02:53 -07:00
Keep it simple ;)
Just define the extract commands as a list, then add the filePath and finally call it.
This commit is contained in:
parent
356b2059d9
commit
083d58a5d9
1 changed files with 2 additions and 3 deletions
|
@ -118,9 +118,8 @@ def extract(dirpath, file, outputDestination):
|
|||
Logger.error("EXTRACTOR: Extraction failed for %s. Could not call command %s", filePath, run)
|
||||
else:
|
||||
try:
|
||||
x = len(cmd)
|
||||
cmd[x] = filePath # add filePath to final cmd arg
|
||||
res = call(cmd) #
|
||||
cmd.append(filePath) # add filePath to final cmd arg.
|
||||
res = call(cmd) # should extract files fine.
|
||||
if res == 0:
|
||||
Logger.info("EXTRACTOR: Extraction was successful for %s to %s", filePath, outputDestination)
|
||||
else:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue