Bring script headers onto the template and close safeguard gaps
Headers claimed protections the code never had, and several destructive paths had no guard against a collapsed config value.
This commit is contained in:
@@ -17,7 +17,7 @@
|
||||
# Goal: 0–3 meaningful Sonarr adds per run, not bulk imports.
|
||||
#
|
||||
# ==============================================================================================
|
||||
# FLOW
|
||||
# OPERATIONAL MODEL
|
||||
# ==============================================================================================
|
||||
#
|
||||
# 1. Fetch all Series from Emby SONARR_EMBY_LIBRARIES — build TMDB+TVDB index
|
||||
@@ -63,12 +63,29 @@
|
||||
# Max adds: SONARR_DISCOVERY_MAX_ADDS (default 3) — TV is a larger commitment than movies
|
||||
#
|
||||
# ==============================================================================================
|
||||
# REQUIREMENTS
|
||||
# CONFIGURATION
|
||||
# ==============================================================================================
|
||||
#
|
||||
# TMDB API key — required for Stage 2 recommendations and external_ids lookup
|
||||
# Configure HOST*_TMDB_API_KEY in host*.conf
|
||||
# Free key at: https://www.themoviedb.org/settings/api
|
||||
# host*.conf (aliased by detect_hosts())
|
||||
#
|
||||
# HOST*_TMDB_API_KEY Required for Stage 2 recommendations and external_ids lookup.
|
||||
# Free key at https://www.themoviedb.org/settings/api — without it
|
||||
# the run exits cleanly rather than adding anything unscored.
|
||||
# SONARR_URL / SONARR_API_KEY Target arr
|
||||
# EMBY_URL / EMBY_API_KEY Play history source for seed selection
|
||||
#
|
||||
# master.conf
|
||||
#
|
||||
# SONARR_DISCOVERY_THRESHOLD Score required to accept a candidate (0-100)
|
||||
# SONARR_DISCOVERY_LOOKBACK_DAYS Emby episode play history window
|
||||
# SONARR_DISCOVERY_MAX_SEEDS Max seed series taken from Stage 1
|
||||
# SONARR_DISCOVERY_MAX_ADDS Hard cap on shows added per run
|
||||
# SONARR_DISCOVERY_MIN_VOTE_COUNT Min TMDB votes for a candidate to be considered
|
||||
# SONARR_DISCOVERY_MIN_RATING Min TMDB vote_average × 10
|
||||
# SONARR_DISCOVERY_REJECT_COOLDOWN Days before a rejected show is re-evaluated
|
||||
# SONARR_DISCOVERY_USER_EPISODE_CAP Max episodes one user contributes to seed volume
|
||||
# SONARR_DISCOVERY_MONITOR_MODE Sonarr monitor mode on add
|
||||
# SONARR_DISCOVERY_HISTORY Decision history DB — accepted and rejected
|
||||
#
|
||||
# ==============================================================================================
|
||||
# DESIGN PRINCIPLES
|
||||
|
||||
Reference in New Issue
Block a user