mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-20 21:33:13 -07:00
add option move-sym to create symlink to renamed files. Fixes #894
This commit is contained in:
parent
a121cb6baf
commit
316cc64075
3 changed files with 24 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue