mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-19 12:59:36 -07:00
added slight time delay in while loop.
This commit is contained in:
parent
c819c3da92
commit
c134c65adf
1 changed files with 1 additions and 0 deletions
|
@ -435,6 +435,7 @@ while os.path.exists(videofile): # while this file is still here, CPS hasn't fi
|
||||||
if (datetime.datetime.now() - now) > datetime.timedelta(minutes=3): # note; minimum 1 minute delay in autoProcessMovie
|
if (datetime.datetime.now() - now) > datetime.timedelta(minutes=3): # note; minimum 1 minute delay in autoProcessMovie
|
||||||
Logger.info("MAIN: The file %s has not been moved after 3 minutes.")
|
Logger.info("MAIN: The file %s has not been moved after 3 minutes.")
|
||||||
break
|
break
|
||||||
|
time.sleep(10) #Just stop this looping infinitely and hogging resources for 3 minutes ;)
|
||||||
else: # CPS (and SickBeard) have finished. We can now resume seeding.
|
else: # CPS (and SickBeard) have finished. We can now resume seeding.
|
||||||
Logger.info("MAIN: The file %s has been moved. Postprocessing appears to have succeeded." % videofile)
|
Logger.info("MAIN: The file %s has been moved. Postprocessing appears to have succeeded." % videofile)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue