Update watcher.py

This commit is contained in:
TylerCG 2025-09-13 22:17:07 -04:00
parent 031322466b
commit cd38eda645

View File

@ -5,11 +5,11 @@ import threading
import subprocess
import logging
from logging.handlers import TimedRotatingFileHandler
from watchdog.observers import Observer
from watchdog.observers.polling import PollingObserver as Observer
from watchdog.events import FileSystemEventHandler
# Configuration
WATCH_DIR = os.environ.get("WATCH_DIR", "/data")
WATCH_DIR = os.environ.get("WATCH_DIR", "/books")
DEBOUNCE_DELAY = int(os.environ.get("DEBOUNCE_DELAY", "2"))
DEBUG = os.environ.get("DEBUG", "false").lower() == "true"
LOG_DIR = os.path.join(WATCH_DIR, "/logs")