Skip to content

Commit

Permalink
fix(sonarr): refresh series script
Browse files Browse the repository at this point in the history
  • Loading branch information
ajgon committed Feb 7, 2025
1 parent 596b8ba commit 86a0171
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion modules/system/containers/sonarr/refresh-series.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,10 @@
# shellcheck disable=SC2154
set -euo pipefail

SONARR__AUTH__APIKEY=$(cat /secrets/SONARR__AUTH__APIKEY)

CURL_CMD=(curl -fsSL --header "X-Api-Key: ${SONARR__AUTH__APIKEY:-}")
SONARR_API_URL="http://localhost:${SONARR__SERVER__PORT:-}/api/v3"
SONARR_API_URL="http://localhost:${SONARR__SERVER__PORT:-8989}/api/v3"

if [[ "${sonarr_eventtype:-}" == "Grab" ]]; then
tba=$("${CURL_CMD[@]}" "${SONARR_API_URL}/episode?seriesId=${sonarr_series_id:-}" | jq --raw-output '
Expand Down

0 comments on commit 86a0171

Please sign in to comment.