From 766ce08e0dfd4d656f1700e59ae085be6501ec39 Mon Sep 17 00:00:00 2001 From: Dylan De Faoite Date: Thu, 18 Dec 2025 22:36:13 +0000 Subject: [PATCH] replace sseof with -t flag & remove constant that now lives in the config file --- rewind/core.py | 2 +- rewind/daemon.py | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/rewind/core.py b/rewind/core.py index 05a0f49..b4db417 100644 --- a/rewind/core.py +++ b/rewind/core.py @@ -45,7 +45,7 @@ def concat_ts_files(file_list: list[str], start_offset: float, end_offset: float if start_offset > 0: cmd += ["-ss", str(start_offset)] if end_offset > 0: - cmd += ["-sseof", str(length)] + cmd += ["-t", str(length)] cmd += ["-f", "concat", "-safe", "0", "-i", "file_list.txt", "-c", "copy"] cmd.append(output_file) diff --git a/rewind/daemon.py b/rewind/daemon.py index 3c21256..882d3b1 100755 --- a/rewind/daemon.py +++ b/rewind/daemon.py @@ -11,7 +11,6 @@ from watchdog.observers import Observer from watchdog.events import FileSystemEventHandler INTERVAL = 10 -MAX_AGE_SECONDS = 60 * 60 * 1 running = True def open_obs():