binhex-official-qbit-guard

binhex-official-qbit-guard

Application Docker from Binhex's Repository

Vue d'ensemble

A zero-dependency Python guard for qBittorrent that blocks pre-air TV episodes (Sonarr), deletes ISO/BDMV-only torrents, and auto-blocklists bad releases in Sonarr/Radarr (with dedupe + queue failover). Runs on "torrent added", fetches metadata safely, and logs everything to stdout.

Arguments d'exécution

Réseau
bridge
Coquille
bash
Privilégié
false

Configuration du modèle

Variable: QBIT_HOSTVariable

qBittorrent WebUI URL

Cible
QBIT_HOST
Défaut
http://127.0.0.1:8080
Variable: QBIT_USERVariable

qBittorrent WebUI username

Cible
QBIT_USER
Défaut
admin
Variable: QBIT_PASSVariable

qBittorrent WebUI password

Cible
QBIT_PASS
Défaut
adminadmin
Variable: QBIT_ALLOWED_CATEGORIESVariable

Comma-separated list of categories to process

Cible
QBIT_ALLOWED_CATEGORIES
Défaut
radarr,tv-sonarr
Variable: QBIT_DELETE_FILESVariable

Delete files when removing torrents

Cible
QBIT_DELETE_FILES
Défaut
true|false
Variable: QBIT_IGNORE_TLSVariable

Set to 1 to ignore SSL certificate errors

Cible
QBIT_IGNORE_TLS
Défaut
0|1
Variable: QBIT_DRY_RUNVariable

Set to 1 for testing mode (no actual deletions)

Cible
QBIT_DRY_RUN
Défaut
0|1
Variable: WATCH_POLL_SECONDSVariable

How often to check qBittorrent for new torrents (seconds)

Cible
WATCH_POLL_SECONDS
Défaut
3.0
Variable: WATCH_PROCESS_EXISTING_AT_STARTVariable

Process existing torrents when container starts (0 or 1)

Cible
WATCH_PROCESS_EXISTING_AT_START
Défaut
0|1
Variable: WATCH_RESCAN_KEYWORDVariable

Keyword in category/tags to force reprocessing

Cible
WATCH_RESCAN_KEYWORD
Défaut
rescan
Variable: ENABLE_PREAIR_CHECKVariable

Enable pre-air checking (0 or 1)

Cible
ENABLE_PREAIR_CHECK
Défaut
1|0
Variable: SONARR_URLVariable

Sonarr base URL

Cible
SONARR_URL
Défaut
http://127.0.0.1:8989
Variable: SONARR_APIKEYVariable

Sonarr API key

Cible
SONARR_APIKEY
Variable: SONARR_CATEGORIESVariable

Categories to apply pre-air checks to

Cible
SONARR_CATEGORIES
Défaut
tv-sonarr
Variable: EARLY_GRACE_HOURSVariable

Allow releases this many hours before air date

Cible
EARLY_GRACE_HOURS
Défaut
6
Variable: EARLY_HARD_LIMIT_HOURSVariable

Block releases more than this many hours early

Cible
EARLY_HARD_LIMIT_HOURS
Défaut
72
Variable: WHITELIST_OVERRIDES_HARD_LIMITVariable

Let whitelisted releases bypass hard limit (0 or 1)

Cible
WHITELIST_OVERRIDES_HARD_LIMIT
Défaut
0|1
Variable: EARLY_WHITELIST_GROUPSVariable

Comma-separated list of trusted release groups

Cible
EARLY_WHITELIST_GROUPS
Variable: EARLY_WHITELIST_INDEXERSVariable

Comma-separated list of trusted indexers

Cible
EARLY_WHITELIST_INDEXERS
Variable: EARLY_WHITELIST_TRACKERSVariable

Comma-separated list of trusted trackers

Cible
EARLY_WHITELIST_TRACKERS
Variable: RESUME_IF_NO_HISTORYVariable

Proceed if Sonarr history not found (0 or 1)

Cible
RESUME_IF_NO_HISTORY
Défaut
1|0
Variable: SONARR_TIMEOUT_SECVariable

HTTP timeout for Sonarr API calls

Cible
SONARR_TIMEOUT_SEC
Défaut
45
Variable: SONARR_RETRIESVariable

Retry attempts for Sonarr operations

Cible
SONARR_RETRIES
Défaut
3
Variable: RADARR_URLVariable

Radarr base URL

Cible
RADARR_URL
Défaut
http://127.0.0.1:7878
Variable: RADARR_APIKEYVariable

Radarr API key

Cible
RADARR_APIKEY
Variable: RADARR_CATEGORIESVariable

Categories to apply Radarr blocklisting to

Cible
RADARR_CATEGORIES
Défaut
radarr
Variable: RADARR_TIMEOUT_SECVariable

HTTP timeout for Radarr API calls

Cible
RADARR_TIMEOUT_SEC
Défaut
45
Variable: RADARR_RETRIESVariable

Retry attempts for Radarr operations

Cible
RADARR_RETRIES
Défaut
3
Variable: INTERNET_CHECK_PROVIDERVariable

Provider selection: off, tvmaze, tvdb, or both

Cible
INTERNET_CHECK_PROVIDER
Défaut
tvmaze|tvdb|both|off
Variable: TVMAZE_BASEVariable

TVmaze API base URL

Cible
TVMAZE_BASE
Défaut
https://api.tvmaze.com
Variable: TVMAZE_TIMEOUT_SECVariable

HTTP timeout for TVmaze API calls

Cible
TVMAZE_TIMEOUT_SEC
Défaut
8
Variable: TVDB_BASEVariable

TheTVDB API base URL

Cible
TVDB_BASE
Défaut
https://api4.thetvdb.com/v4
Variable: TVDB_APIKEYVariable

TheTVDB API key (required for TVDB)

Cible
TVDB_APIKEY
Variable: TVDB_PINVariable

TheTVDB PIN (optional)

Cible
TVDB_PIN
Variable: TVDB_LANGUAGEVariable

Language code for TheTVDB

Cible
TVDB_LANGUAGE
Défaut
eng
Variable: TVDB_ORDERVariable

Episode order: default or official

Cible
TVDB_ORDER
Défaut
default|official
Variable: TVDB_TIMEOUT_SECVariable

HTTP timeout for TheTVDB API calls

Cible
TVDB_TIMEOUT_SEC
Défaut
8
Variable: TVDB_BEARERVariable

Reuse existing bearer token (optional)

Cible
TVDB_BEARER
Variable: ENABLE_ISO_CHECKVariable

Enable ISO/disc image cleanup (0 or 1)

Cible
ENABLE_ISO_CHECK
Défaut
1|0
Variable: MIN_KEEPABLE_VIDEO_MBVariable

Minimum size for video files to keep (MB)

Cible
MIN_KEEPABLE_VIDEO_MB
Défaut
50
Variable: METADATA_POLL_INTERVALVariable

Seconds between file list checks during metadata fetching

Cible
METADATA_POLL_INTERVAL
Défaut
1.5
Variable: METADATA_MAX_WAIT_SECVariable

Max wait for metadata resolution (0 = infinite)

Cible
METADATA_MAX_WAIT_SEC
Défaut
0
Variable: METADATA_DOWNLOAD_BUDGET_BYTESVariable

Max bytes to download during metadata wait (0 = no limit)

Cible
METADATA_DOWNLOAD_BUDGET_BYTES
Défaut
0
Variable: GUARD_EXT_STRATEGYVariable

Extension strategy: block or allow

Cible
GUARD_EXT_STRATEGY
Défaut
block|allow
Variable: GUARD_ALLOWED_EXTSVariable

Comma-separated list of allowed extensions (for allow mode)

Cible
GUARD_ALLOWED_EXTS
Variable: GUARD_BLOCKED_EXTSVariable

Comma-separated list of blocked extensions (overrides defaults in block mode)

Cible
GUARD_BLOCKED_EXTS
Variable: GUARD_EXT_DELETE_IF_ALL_BLOCKEDVariable

Delete only if all files are disallowed (0 or 1)

Cible
GUARD_EXT_DELETE_IF_ALL_BLOCKED
Défaut
1|0
Variable: GUARD_EXT_DELETE_IF_ANY_BLOCKEDVariable

Delete if any file is disallowed (0 or 1)

Cible
GUARD_EXT_DELETE_IF_ANY_BLOCKED
Défaut
0|1
Variable: GUARD_EXT_VIOLATION_TAGVariable

Tag applied to torrents deleted for extension violations

Cible
GUARD_EXT_VIOLATION_TAG
Défaut
trash:ext
Variable: GUARD_DISC_EXTSVariable

Disc image extensions

Cible
GUARD_DISC_EXTS
Défaut
iso,img,mdf,nrg,cue,bin
Variable: GUARD_EXTS_FILEVariable

Path to JSON config file (optional)

Cible
GUARD_EXTS_FILE
Variable: LOG_LEVELVariable

Logging verbosity: INFO or DEBUG

Cible
LOG_LEVEL
Défaut
INFO|DEBUG
Variable: USER_AGENTVariable

HTTP User-Agent string for API calls

Cible
USER_AGENT
Défaut
qbit-guard/2.0

Catégories

Détails

Référentiel
ghcr.io/gengines/qbit-guard
Dernière mise à jour2026-05-31
Première vue2025-08-28

Exécutez binhex-official-qbit-guard sur Unraid.

binhex-official-qbit-guard est listé dans Community Apps pour Unraid OS. Explorez Unraid pour créer un serveur domestique flexible, un NAS ou un laboratoire domestique.