From 090037f26164841035d4d180a90515c094d83bf4 Mon Sep 17 00:00:00 2001 From: HeNine <> Date: Sun, 7 Nov 2021 16:06:22 +0100 Subject: [PATCH] End of segments weirdness --- buscribe/buscribe/main.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/buscribe/buscribe/main.py b/buscribe/buscribe/main.py index 3356404..bead596 100644 --- a/buscribe/buscribe/main.py +++ b/buscribe/buscribe/main.py @@ -88,6 +88,10 @@ def main(channel, database="", base_dir=".", if segments[0] is None: segments = segments[1:] + if not segments: + # We reached end of segments and are waiting for some new ones + sleep(30) + if recognizer.segments_start_time is None: recognizer.segments_start_time = segments[0].start logging.info(f"Starting from: {segments[0].start}")