code: def pattern_logic_aeidon():
      
  
      if Config.options.pattern_files:
          return prep_patterns(Config.options.pattern_files)
      elif Config.options.regex:
          return Config.REGEX
      else:
          return Config.TERMS
docs: Return patterns to be used for searching subtitles via aeidon.