From c2ee823095320e6df035f92f9ea4a92ec65b2853 Mon Sep 17 00:00:00 2001 From: d8ahazard Date: Fri, 25 Oct 2019 17:31:08 -0500 Subject: [PATCH] Revert "Make in place mean in place" This reverts commit 00f1cbbe284a9cbe88b1d38aad148f9264b951b6. --- simpleextractor/core.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/simpleextractor/core.py b/simpleextractor/core.py index 11c4e49..3a377d0 100644 --- a/simpleextractor/core.py +++ b/simpleextractor/core.py @@ -192,7 +192,9 @@ class Core(CorePluginBase): # Override destination if in_place_extraction is set if self.config["in_place_extraction"]: - dest = os.path.split(f["path"])[0] + name = tid_status["name"] + save_path = tid_status["download_location"] + dest = os.path.join(save_path, name) 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