Initial commit: StashHandler

Bridge between qBittorrent and Stash that polls for completed torrents,
deduplicates via SHA256 hashing and SQLite, and imports new media files.
Supports daemon mode (continuous polling) and scan mode (bulk operations).
Configuration via environment variables for Docker Swarm compatibility.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-02-16 11:25:05 -05:00
commit f09d94e34b
10 changed files with 617 additions and 0 deletions
+28
View File
@@ -0,0 +1,28 @@
# Python
__pycache__/
*.py[cod]
*.egg-info/
dist/
build/
*.egg
# Virtual environments
.venv/
venv/
env/
# Database
*.db
# IDE
.idea/
.vscode/
*.swp
*.swo
# Docker overrides
docker-compose.override.yaml
# OS
.DS_Store
Thumbs.db