code: def init_autoindex(self, auto_interval):
          
          if not auto_interval:
              return
  
          from pywb.manager.autoindex import AutoIndexer
  
          colls_dir = self.warcserver.root_dir if self.warcserver.root_dir else None
  
          indexer = AutoIndexer(colls_dir=colls_dir, interval=int(auto_interval))
  
          if not os.path.isdir(indexer.root_path):
              msg = 'No managed directory "{0}" for auto-indexing'
              logging.error(msg.format(indexer.root_path))
              import sys
              sys.exit(2)
  
          msg = 'Auto-Indexing Enabled on "{0}", checking every {1} secs'
          logging.info(msg.format(indexer.root_path, auto_interval))
          indexer.start()
docs: Initialize and start the auto-indexing of the collections. If auto_interval is None this is a no op.
  
          :param str|int auto_interval: The auto-indexing interval from the configuration file or CLI argument