# qBittorrent connectionQBIT_HOST=http://qbittorrent:8080# qB WebUI URLQBIT_USER=admin# WebUI username QBIT_PASS=adminadmin# WebUI passwordQBIT_ALLOWED_CATEGORIES="tv-sonarr,radarr"# Comma-separated categories to processQBIT_DELETE_FILES=true# Delete files when removing torrentsQBIT_IGNORE_TLS=0# Set to 1 to ignore SSL certificate errorsQBIT_DRY_RUN=0# Set to 1 for testing (no actual deletions)
# Enable pre-air checkingENABLE_PREAIR_CHECK=1SONARR_URL=http://sonarr:8989
SONARR_APIKEY=your_sonarr_api_key_here
SONARR_CATEGORIES="tv-sonarr"# Categories to apply pre-air checks to# Pre-air timing controlsEARLY_GRACE_HOURS=6# Allow releases this many hours before air dateEARLY_HARD_LIMIT_HOURS=72# Block releases more than this many hours earlyWHITELIST_OVERRIDES_HARD_LIMIT=0# Set to 1 to let whitelisted releases bypass hard limit# Whitelisting (comma-separated, case-insensitive)EARLY_WHITELIST_GROUPS="scene_group1,group2"EARLY_WHITELIST_INDEXERS="indexer1,indexer2"EARLY_WHITELIST_TRACKERS="tracker1,tracker2"# Fallback behaviorRESUME_IF_NO_HISTORY=1# Proceed if Sonarr history not found yet
# Radarr connection (for movie ISO cleanup)RADARR_URL=http://radarr:7878
RADARR_APIKEY=your_radarr_api_key_here
RADARR_CATEGORIES="radarr"# Categories to apply Radarr blocklisting to
This integration ensures that ISO files deleted by qbit-guard are also blocklisted in Radarr to prevent re-downloading.
# Enable ISO/disc image cleanupENABLE_ISO_CHECK=1# Video file criteria MIN_KEEPABLE_VIDEO_MB=50# Minimum size for video files to keep (MB)# Metadata fetching behaviorMETADATA_POLL_INTERVAL=1.5# Seconds between file list checksMETADATA_MAX_WAIT_SEC=0# Max wait for metadata (0 = infinite)METADATA_DOWNLOAD_BUDGET_BYTES=0# Max bytes to download while waiting (0 = no limit)
# StrategyGUARD_EXT_STRATEGY=block# block (default) or allow# ListsGUARD_ALLOWED_EXTS="mkv, mp4, srt, ass"# (used in allow mode)GUARD_BLOCKED_EXTS="iso, exe, bat, cmd, sh, msi, zip, rar, 7z"# (overrides defaults in block mode)# EnforcementGUARD_EXT_DELETE_IF_ALL_BLOCKED=1# (default) – delete only if all files are disallowedGUARD_EXT_DELETE_IF_ANY_BLOCKED=0# – set to 1 to delete if any file is disallowedGUARD_EXT_VIOLATION_TAG=trash:ext
# Disc set override (used by ISO detection and defaults)GUARD_DISC_EXTS="iso,img,mdf,nrg,cue,bin"
WATCH_POLL_SECONDS=3.0# How often to check for new torrentsWATCH_PROCESS_EXISTING_AT_START=0# Set to 1 to process existing torrents on startupWATCH_RESCAN_KEYWORD=rescan# Add this keyword to category/tags to force reprocessing
QBIT_MAX_RETRY_ATTEMPTS=5# Maximum reconnection attempts (default: 5)QBIT_INITIAL_BACKOFF_SEC=1.0# Initial retry delay in seconds (default: 1.0)QBIT_MAX_BACKOFF_SEC=60.0# Maximum retry delay in seconds (default: 60.0)
The watcher will automatically detect connection failures and attempt to reconnect with exponential backoff. On successful reconnection, it resets the request ID and re-authenticates to ensure clean state recovery.