mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-14 02:26:53 -07:00
exit success if all files processed. Fixes https://github.com/RuudBurger/CouchPotatoServer/issues/3611
This commit is contained in:
parent
011bcfad55
commit
9f947dc111
1 changed files with 9 additions and 0 deletions
|
@ -312,6 +312,15 @@ class autoProcessMovie:
|
|||
return 0 # success
|
||||
except:
|
||||
pass
|
||||
if not os.path.isdir(dirName):
|
||||
logger.postprocess("SUCCESS: Input Directory [%s] has been processed and removed" % (
|
||||
dirName), section)
|
||||
return 0
|
||||
|
||||
elif not listMediaFiles(dirName, media=True, audio=False, meta=False, archives=True):
|
||||
logger.postprocess("SUCCESS: Input Directory [%s] has no remaining media files. This has been fully processed." % (
|
||||
dirName), section)
|
||||
return 0
|
||||
|
||||
# pause and let CouchPotatoServer catch its breath
|
||||
time.sleep(10 * wait_for)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue