Add category filtering, default to copy mode, split dev/prod compose
- Default MOVE_MODE changed to copy so qBit can continue seeding - Add QBIT_CATEGORY env var (default "Stash") to filter torrents - Split compose into dev (build from source) and prod (pre-built image) - Fix Dockerfile COPY glob needing trailing slash - Update README and summary docs Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
+3
-2
@@ -31,7 +31,8 @@ def load_config():
|
||||
os.environ.get("MEDIA_EXTENSIONS", DEFAULT_MEDIA_EXTENSIONS).split(",")
|
||||
),
|
||||
"hash_algorithm": os.environ.get("HASH_ALGORITHM", "sha256"),
|
||||
"move_mode": os.environ.get("MOVE_MODE", "move"),
|
||||
"move_mode": os.environ.get("MOVE_MODE", "copy"),
|
||||
"qbit_category": os.environ.get("QBIT_CATEGORY", "Stash"),
|
||||
"db_path": os.environ.get("DB_PATH", "/data/seen.db"),
|
||||
"log_level": os.environ.get("LOG_LEVEL", "INFO"),
|
||||
}
|
||||
@@ -98,7 +99,7 @@ def daemon(cfg):
|
||||
|
||||
while running:
|
||||
try:
|
||||
torrents = qbit.get_completed_torrents()
|
||||
torrents = qbit.get_completed_torrents(cfg["qbit_category"])
|
||||
except Exception:
|
||||
log.exception("Failed to fetch torrents")
|
||||
_sleep(poll_interval, lambda: running)
|
||||
|
||||
Reference in New Issue
Block a user