Fixed issue with manual runs.

Watch directory option now gets it's subsection name appened to it and is considered as a INPUTDIRECTORY, works for both nzb and torrent manual runs.

Linking now skips if source and target folders/files are located in the same place or the file already exists in the target folder.
This commit is contained in:
echel0n 2014-04-26 16:22:41 -07:00
commit 0e985f9181
3 changed files with 21 additions and 17 deletions

View file

@ -286,7 +286,6 @@ def external_script(outputDestination, torrentName, torrentLabel):
result = int(1)
final_result = final_result + result
time.sleep(nzbtomedia.USER_DELAY)
num_files_new = 0
for dirpath, dirnames, filenames in os.walk(outputDestination):
for file in filenames:
@ -363,7 +362,7 @@ def main(args):
except:
inputID = None
if clientAgent.lower() not in (nzbtomedia.TORRENT_CLIENTS or ['manual']):
if clientAgent.lower() not in nzbtomedia.TORRENT_CLIENTS and clientAgent != 'manual':
continue
results = processTorrent(dirName, os.path.basename(dirName), subsection, inputHash, inputID,