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)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user