mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-19 12:59:36 -07:00
only scan dir if not Manual Run. fixes #183
This commit is contained in:
parent
fb0cb695bf
commit
e1fa3ea239
1 changed files with 19 additions and 23 deletions
|
@ -118,6 +118,7 @@ def processEpisode(dirName, nzbName=None, failed=False):
|
|||
|
||||
process_all_exceptions(nzbName.lower(), dirName)
|
||||
|
||||
if nzbName != "Manual Run":
|
||||
# Now check if movie files exist in destination:
|
||||
video = int(0)
|
||||
for dirpath, dirnames, filenames in os.walk(dirName):
|
||||
|
@ -137,11 +138,6 @@ def processEpisode(dirName, nzbName=None, failed=False):
|
|||
status = int(1)
|
||||
failed = True
|
||||
|
||||
#allows manual call of postprocess script if we have specified a watch_dir. Check that here.
|
||||
if nzbName == "Manual Run" and watch_dir == "":
|
||||
Logger.error("In order to run this script manually you must specify a watch_dir in autoProcessTV.cfg")
|
||||
return 1 # failure
|
||||
#allows us to specify the default watch directory and call the postproecssing on another PC with different directory structure.
|
||||
if watch_dir != "":
|
||||
dirName = watch_dir
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue