This commit is contained in:
soraefir
2026-05-21 01:18:32 +02:00
parent 09ca162eed
commit beaed878f8

View File

@@ -343,7 +343,7 @@ in
fi fi
SONARR_QP_RM=("SD" "HD-720p" "HD - 720p/1080p") SONARR_QP_RM=("SD" "HD-720p" "HD - 720p/1080p")
for name in "''${SONARR_QP_RM[@]}"; do for name in "''${SONARR_QP_RM[@]}"; do
QP_ID=$(echo "$json_data" | jq -r --arg n "$name" '.[] | select(.name == $n) | .id') QP_ID=$(echo "$SONARR_QP" | jq -r --arg n "$name" '.[] | select(.name == $n) | .id')
if [ -n "$QP_ID" ]; then if [ -n "$QP_ID" ]; then
${pkgs.curl}/bin/curl -s -X DELETE "$SONARR_URL/api/v3/qualityprofile/$QP_ID?" \ ${pkgs.curl}/bin/curl -s -X DELETE "$SONARR_URL/api/v3/qualityprofile/$QP_ID?" \
-H "X-Api-Key: $SONARR__AUTH__APIKEY" -H 'X-Sonarr-Client: true' \ -H "X-Api-Key: $SONARR__AUTH__APIKEY" -H 'X-Sonarr-Client: true' \