docs: def scan(subtitles):
      """Remove advertising from subtitles."""
  
      from importlib.util import find_spec
  
      try:
          import subnuker
      except ImportError:
          fatal('Unable to scan subtitles. Please install subnuker.')
  
      # check whether aeidon is available
      aeidon = find_spec('aeidon') is not None
  
      if sys.stdin.isatty():
          # launch subnuker from the existing terminal
          args = (['--aeidon'] if aeidon else []) + \
              ['--gui', '--regex'] + subtitles
          subnuker.main(args)
      else:
          # launch subnuker from a new terminal
          args = (['--aeidon'] if aeidon else []) + \
              ['--gui', '--regex']
          execute(Config.TERMINAL,
                  '--execute',
                  'subnuker',
                  *args + subtitles)