mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-07-30 03:28:26 -07:00
don't use output directory if part of input directory. Fixes #911
This commit is contained in:
parent
3e4861e87c
commit
a121cb6baf
1 changed files with 3 additions and 0 deletions
|
@ -117,6 +117,9 @@ def processTorrent(inputDirectory, inputName, inputCategory, inputHash, inputID,
|
||||||
outputDestination = outputDestination.encode(core.SYS_ENCODING)
|
outputDestination = outputDestination.encode(core.SYS_ENCODING)
|
||||||
except: pass
|
except: pass
|
||||||
|
|
||||||
|
if outputDestination in inputDirectory:
|
||||||
|
outputDestination = inputDirectory
|
||||||
|
|
||||||
logger.info("Output directory set to: %s" % (outputDestination))
|
logger.info("Output directory set to: %s" % (outputDestination))
|
||||||
|
|
||||||
if core.SAFE_MODE and outputDestination == core.TORRENT_DEFAULTDIR:
|
if core.SAFE_MODE and outputDestination == core.TORRENT_DEFAULTDIR:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue