From: Guillaume Pellerin Date: Sat, 23 Aug 2025 04:52:52 +0000 (+0200) Subject: add tools arg X-Git-Tag: 4.3.0~7 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=8b4e4fbd2aa45768cc96b0f7b36b2a2434bc1b2c;p=telecaster-server.git add tools arg --- diff --git a/bin/streaming/telecaster.py b/bin/streaming/telecaster.py index 999bb19..9cb5e86 100755 --- a/bin/streaming/telecaster.py +++ b/bin/streaming/telecaster.py @@ -122,6 +122,7 @@ class TeleCaster(Thread): conf_file = open(args["config"], 'r') self.verbose = args["verbose"] self.dry_run = args["dry_run"] + self.tools = args["tools"] self.conf = yaml.safe_load(conf_file)["telecaster"] self.stream_types = ["audio", "video"] self.deefuzzer_video_conf_file = "/tmp/telecaster_deefuzzer_webm_monitor.yml" @@ -278,7 +279,8 @@ class TeleCaster(Thread): def run(self): self.audio_engine_start() - self.audio_tools_start() + if self.tools: + self.audio_tools_start() self.video_start() self.audio_start() self.connect() @@ -290,6 +292,7 @@ def main(): parser.add_argument("-c", "--config", help="config file", type=str) parser.add_argument("-v", "--verbose", help="verbose", action="store_true") parser.add_argument("-d", "--dry-run", help="dry run", action="store_true") + parser.add_argument("-t", "--tools", help="start tools", action="store_true") args = vars(parser.parse_args()) if os.path.exists(DEFAULT_CONFIG_FILE) and not args["config"]: args['config'] = DEFAULT_CONFIG_FILE