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:
@@ -10,4 +10,5 @@ dependencies = [
|
|||||||
]
|
]
|
||||||
|
|
||||||
[project.scripts]
|
[project.scripts]
|
||||||
rewind = "rewind.clip:main"
|
rewind = "rewind.clip:main"
|
||||||
|
rewind-daemon = "rewind.service:main"
|
||||||
@@ -6,11 +6,11 @@ import obsws_python as obs
|
|||||||
import subprocess
|
import subprocess
|
||||||
import json
|
import json
|
||||||
|
|
||||||
from video import get_duration
|
from rewind.video import get_duration
|
||||||
from paths import load_state, write_state
|
from rewind.paths import load_state, write_state
|
||||||
|
|
||||||
INTERVAL = 10
|
INTERVAL = 10
|
||||||
MAX_AGE_SECONDS = 60 * 60 * 8
|
MAX_AGE_SECONDS = 60 * 60 * 1
|
||||||
|
|
||||||
def open_obs():
|
def open_obs():
|
||||||
subprocess.Popen(["obs", "--minimize-to-tray"])
|
subprocess.Popen(["obs", "--minimize-to-tray"])
|
||||||
|
|||||||
Reference in New Issue
Block a user