def plan_resume(interval):
 global __SCHED, __PAUSE_END
 if (interval > 0):
  __PAUSE_END = (time.time() + (interval * 60))
  logging.debug('Schedule resume at %s', __PAUSE_END)
  __SCHED.add_single_task(__oneshot_resume, '', (interval * 60), kronos.method.sequential, [__PAUSE_END], None)
  sabnzbd.downloader.Downloader.do.pause()
 else:
  __PAUSE_END = None
  sabnzbd.unpause_all()

def plan_resume ( interval ) : global __SCHED , __PAUSE_END if ( interval > 0 ) : __PAUSE_END = ( time . time ( ) + ( interval * 60 ) ) logging . debug ( 'Schedule resume at %s' , __PAUSE_END ) __SCHED . add_single_task ( __oneshot_resume , '' , ( interval * 60 ) , kronos . method . sequential , [ __PAUSE_END ] , None ) sabnzbd . downloader . Downloader . do . pause ( ) else : __PAUSE_END = None sabnzbd . unpause_all ( )
set a scheduled resume after the interval .