add option move-sym to create symlink to renamed files. Fixes #894

This commit is contained in:
clinton-hall 2015-12-15 22:52:01 +10:30
commit 316cc64075
3 changed files with 24 additions and 4 deletions

View file

@ -249,6 +249,10 @@ def processTorrent(inputDirectory, inputName, inputCategory, inputHash, inputID,
core.update_downloadInfoStatus(inputName, 1)
# remove torrent
if core.USELINK == 'move-sym' and not core.DELETE_ORIGINAL == 1:
inputFiles = core.listMediaFiles(inputDirectory)
for link in inputFiles:
core.replace_links(link)
core.remove_torrent(clientAgent, inputHash, inputID, inputName)
if not sectionName == 'UserScript': # for user script, we assume this is cleaned by the script or option USER_SCRIPT_CLEAN