mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-19 21:03:14 -07:00
use output location for extraction first. Fixes #900
This commit is contained in:
parent
c77ce99ed7
commit
45d95d11e8
1 changed files with 2 additions and 2 deletions
|
@ -1009,8 +1009,8 @@ def extractFiles(src, dst=None, keep_archive = None):
|
||||||
continue # no need to extract this, but keep going to look for other archives and sub directories.
|
continue # no need to extract this, but keep going to look for other archives and sub directories.
|
||||||
|
|
||||||
try:
|
try:
|
||||||
if extractor.extract(inputFile, dirPath or dst):
|
if extractor.extract(inputFile, dst or dirPath):
|
||||||
extracted_folder.append(dirPath or dst)
|
extracted_folder.append(dst or dirPath)
|
||||||
extracted_archive.append(archiveName)
|
extracted_archive.append(archiveName)
|
||||||
except Exception, e:
|
except Exception, e:
|
||||||
logger.error("Extraction failed for: %s" % (fullFileName))
|
logger.error("Extraction failed for: %s" % (fullFileName))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue