mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-19 21:03:14 -07:00
correctly list sym-links #894
This commit is contained in:
parent
316cc64075
commit
c521e3beae
1 changed files with 3 additions and 3 deletions
|
@ -250,9 +250,9 @@ def processTorrent(inputDirectory, inputName, inputCategory, inputHash, inputID,
|
|||
|
||||
# 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)
|
||||
for dirpath, dirs, files in os.walk(inputDirectory):
|
||||
for file in files:
|
||||
core.replace_links(os.path.join(dirpath,file))
|
||||
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