Skip to content
Snippets Groups Projects
Commit fe2c9438 authored by Chris Pastl's avatar Chris Pastl
Browse files

fix: adapt config for StreamChannel

parent 319652a5
No related branches found
No related tags found
1 merge request!32fix config for StreamChannel
Pipeline #7573 passed
...@@ -440,8 +440,8 @@ class StreamChannel(GenericChannel): ...@@ -440,8 +440,8 @@ class StreamChannel(GenericChannel):
""" """
self.logger.debug(SU.pink(f"Loading stream '{uri}'")) self.logger.debug(SU.pink(f"Loading stream '{uri}'"))
retry_delay = self.config.get("input_stream_retry_delay") retry_delay = self.config.scheduler.input_stream.max_retries
max_retries = self.config.get("input_stream_max_retries") max_retries = self.config.scheduler.input_stream.retry_delay
  • @chrizz pls note here the values for max_retries and retry_delay are mixed up. No need to fix it, as I'm currently fixing it during the merge from main to the ormless-scheduling branch.

  • Maintainer

    thx for the hint!

  • Please register or sign in to reply
retries = 0 retries = 0
self.stop() self.stop()
...@@ -491,7 +491,7 @@ class StreamChannel(GenericChannel): ...@@ -491,7 +491,7 @@ class StreamChannel(GenericChannel):
is_ready = False is_ready = False
if is_ready: if is_ready:
stream_buffer = self.config.get("input_stream_buffer") stream_buffer = self.config.scheduler.input_stream.buffer
msg = f"Ready to play stream, but wait {stream_buffer} seconds to fill buffer..." msg = f"Ready to play stream, but wait {stream_buffer} seconds to fill buffer..."
self.logger.info(SU.pink(msg)) self.logger.info(SU.pink(msg))
time.sleep(round(float(stream_buffer))) time.sleep(round(float(stream_buffer)))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment