initial publish commit

This commit is contained in:
2025-07-14 08:32:43 +02:00
commit e6ce3dd3b8
9 changed files with 933 additions and 0 deletions

20
.env.template Normal file
View File

@ -0,0 +1,20 @@
# Tdarr connection
TDARR_URL=https://your.tdarr.url.tld/api/v2
TDARR_API_KEY=tapi_XXXXXXXXXXXX
# Behaviour
TDARR_STAGING_LIMIT=50 # refill if staging count < 50
TDARR_BATCH_SIZE=50 # requeue at most 50 files per cycle
TDARR_RETRIES=4 # API retries
TDARR_BACKOFF_MS=2000 # initial back-off in ms
# Logging
LOG_LEVEL=info # or debug / warn / error
LOG_PRETTY=1 # pretty-printed logs
# How long the script waits for /bulk-update-files to respond (ms)
BULK_TIMEOUT_MS=120000
# Interval (minutes) between checks
TDARR_INTERVAL_MIN=60