From 00f1cbbe284a9cbe88b1d38aad148f9264b951b6 Mon Sep 17 00:00:00 2001 From: d8ahazard Date: Fri, 25 Oct 2019 17:27:07 -0500 Subject: [PATCH] Make in place mean in place In place extraction should mean that if you extract a file its contents should be in the same directory as that file. This should apply even for sub directories. (Copy of https://github.com/cvarta/deluge-extractor/pull/15) --- simpleextractor/core.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/simpleextractor/core.py b/simpleextractor/core.py index 3a377d0..11c4e49 100644 --- a/simpleextractor/core.py +++ b/simpleextractor/core.py @@ -192,9 +192,7 @@ class Core(CorePluginBase): # Override destination if in_place_extraction is set if self.config["in_place_extraction"]: - name = tid_status["name"] - save_path = tid_status["download_location"] - dest = os.path.join(save_path, name) + dest = os.path.split(f["path"])[0] log.info("Save path is %s, dest is %s, fpath is %s", save_path, dest, fpath) # Create the destination folder if it doesn't exist