Skip to content

Commit

Permalink
Add new command line option '--exit_jingle'
Browse files Browse the repository at this point in the history
  • Loading branch information
denis-stepanov committed Apr 26, 2024
1 parent 893a350 commit 3829ba8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion advent/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__="1.6b6"
__version__="1.6b7"
3 changes: 2 additions & 1 deletion advent/advent.py
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ def main():
global TV_CODES

## Command-line parser
parser = argparse.ArgumentParser(description='Mute TV commercials by detecting ad jingles in the input audio stream',
parser = argparse.ArgumentParser(description='Combat TV commercials by detecting ad jingles in the input audio stream',
epilog='See https://github.com/denis-stepanov/advent for full manual. For database updates visit https://github.com/denis-stepanov/advent-db')
parser.add_argument('-v', '--version', action='version', version=VERSION)
parser.add_argument('-t', '--tv_control', help='use a given TV control mechanism (default: pulseaudio)', choices=['nil', 'pulseaudio', 'harmonyhub', 'broadlink'], default='pulseaudio')
Expand All @@ -344,6 +344,7 @@ def main():
parser.add_argument('-V', '--volume', help=f'delta for volume lowering (defaults: PulseAudio: -50 (%%), HarmonyHub and BroadLink: -5)', type=int)
parser.add_argument('-d', '--tv_codes', help='path to a folder with TV control codes (used with BroadLink; default: $HOME/tv-codes)', default=TV_CODES)
parser.add_argument('-m', '--mute_timeout', help=f'undo hit action automatically after timeout (s) (default: {MUTE_TIMEOUT}; use 0 to disable)', type=int)
parser.add_argument('-j', '--exit_jingle', help='exit hit action after N exit jingles (default: 1)', type=int)
parser.add_argument('-n', '--num_threads', help=f'run N recognition threads (default: {NUM_THREADS})', type=int)
parser.add_argument('-i', '--rec_interval', help=f'audio recognition interval (s) (default: {REC_INTERVAL})', type=float)
parser.add_argument('-c', '--rec_confidence', help=f'audio recognition confidence (%%) (default: {REC_CONFIDENCE})', type=int)
Expand Down

0 comments on commit 3829ba8

Please sign in to comment.