ADD rewind-daemon as a command

Such that rewind-daemon can easily run in the background. Update service.py to fix library paths
This commit is contained in:
2025-12-18 00:12:50 +00:00
parent b7b57a259f
commit 1113ae3ec1
2 changed files with 5 additions and 4 deletions

View File

@@ -10,4 +10,5 @@ dependencies = [
]
[project.scripts]
rewind = "rewind.clip:main"
rewind = "rewind.clip:main"
rewind-daemon = "rewind.service:main"

View File

@@ -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"])