mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-14 02:26:53 -07:00
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:
parent
b9f15a918e
commit
0e985f9181
3 changed files with 21 additions and 17 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue