fix reference to filePath

This commit is contained in:
Clinton Hall 2013-03-11 23:51:22 -07:00
parent b1c4da309c
commit b087ee8c2d

View file

@ -88,7 +88,7 @@ def extract(filePath, outputDestination):
if not EXTRACT_COMMANDS:
Logger.warn("EXTRACTOR: No archive extracting programs found, plugin will be disabled")
ext = os.path.splitext(file)
ext = os.path.splitext(filePath)
if ext[1] in (".gz", ".bz2", ".lzma"):
# Check if this is a tar
if os.path.splitext(ext[0])[1] == ".tar":