fix(process-new-videos): call snot scan command

This commit is contained in:
2026-06-25 08:46:51 +03:00
parent c5f82527b9
commit f1a6835974
+2 -2
View File
@@ -10,7 +10,7 @@ logging.basicConfig(level=logging.INFO, format="%(asctime)s - %(name)s - %(level
logger = logging.getLogger(__name__) logger = logging.getLogger(__name__)
TARGET_DIR = Path("/mnt/box/files/_raw/prt/") TARGET_DIR = Path("/mnt/box/files/_raw/prt/")
SCAN_SCRIPT_PATH = Path("~/_scripts/scan_vids.py").expanduser() SCAN_SCRIPT_PATH = Path("~/_scripts/snot/snot.py").expanduser()
VIDEO_EXTENSIONS = {".mkv", ".mp4"} VIDEO_EXTENSIONS = {".mkv", ".mp4"}
@@ -38,7 +38,7 @@ def main():
src_path.rename(target_path) src_path.rename(target_path)
subprocess.run( subprocess.run(
[str(SCAN_SCRIPT_PATH), str(target_path)], [str(SCAN_SCRIPT_PATH), "scan", str(target_path)],
text=True, text=True,
check=True, check=True,
) )