fix watch_dir handling. Fixes #420

This commit is contained in:
clinton-hall 2014-06-06 10:45:18 +09:30
commit 05c90ccbdf

View file

@ -487,6 +487,8 @@ def getDirs(section, subsection):
watch_dir = os.path.join(nzbtomedia.CFG[section][subsection]["watch_dir"], subsection) watch_dir = os.path.join(nzbtomedia.CFG[section][subsection]["watch_dir"], subsection)
if os.path.exists(watch_dir): if os.path.exists(watch_dir):
to_return.extend(processDir(watch_dir)) to_return.extend(processDir(watch_dir))
elif os.path.exists(nzbtomedia.CFG[section][subsection]["watch_dir"]):
to_return.extend(processDir(nzbtomedia.CFG[section][subsection]["watch_dir"]))
except:pass except:pass
try: try: