diff --git a/autoProcess/nzbToMediaUtil.py b/autoProcess/nzbToMediaUtil.py index fa913695..e81b4537 100644 --- a/autoProcess/nzbToMediaUtil.py +++ b/autoProcess/nzbToMediaUtil.py @@ -176,6 +176,9 @@ def copy_link(filePath, targetDirectory, useLink, outputDestination): Logger.info("COPYLINK: Something went wrong in linktastic.link, copying instead") Logger.debug("COPYLINK: Copying %s to %s", filePath, targetDirectory) shutil.copy(filePath, targetDirectory) + elif useLink == "move": + Logger.debug("Moving %s to %s", filePath, targetDirectory) + shutil.move(filePath, targetDirectory) else: Logger.debug("Copying %s to %s", filePath, targetDirectory) shutil.copy(filePath, targetDirectory) diff --git a/autoProcessMedia.cfg.sample b/autoProcessMedia.cfg.sample index 8cd88d31..471ef186 100644 --- a/autoProcessMedia.cfg.sample +++ b/autoProcessMedia.cfg.sample @@ -77,7 +77,7 @@ web_root = [Torrent] ###### clientAgent - Supported clients: utorrent, transmission, deluge, other clientAgent = other -###### useLink - Set to hard for physical links, sym for symbolic links, and no to not use links +###### useLink - Set to hard for physical links, sym for symbolic links, move to move, and no to not use links (copy) useLink = hard ###### outputDirectory - Default output directory (categories will be appended as sub directory to outputDirectory) outputDirectory = /abs/path/to/complete/