From 1113ae3ec1bea5e513163d088a24dbe4755a5eed Mon Sep 17 00:00:00 2001 From: Dylan De Faoite Date: Thu, 18 Dec 2025 00:12:50 +0000 Subject: [PATCH] ADD rewind-daemon as a command Such that rewind-daemon can easily run in the background. Update service.py to fix library paths --- pyproject.toml | 3 ++- rewind/service.py | 6 +++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 3d722e9..bdd4b6a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -10,4 +10,5 @@ dependencies = [ ] [project.scripts] -rewind = "rewind.clip:main" \ No newline at end of file +rewind = "rewind.clip:main" +rewind-daemon = "rewind.service:main" \ No newline at end of file diff --git a/rewind/service.py b/rewind/service.py index 3f4a449..c911ec2 100755 --- a/rewind/service.py +++ b/rewind/service.py @@ -6,11 +6,11 @@ import obsws_python as obs import subprocess import json -from video import get_duration -from paths import load_state, write_state +from rewind.video import get_duration +from rewind.paths import load_state, write_state INTERVAL = 10 -MAX_AGE_SECONDS = 60 * 60 * 8 +MAX_AGE_SECONDS = 60 * 60 * 1 def open_obs(): subprocess.Popen(["obs", "--minimize-to-tray"])