pull/49/head
RandomNinjaAtk 2 years ago committed by GitHub
parent ee8d05312e
commit 1c2bd147b0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -3,8 +3,8 @@ scriptVersion="1.0.001"
if [ -z "$arrUrl" ] || [ -z "$arrApiKey" ]; then
arrUrlBase="$(cat /config/config.xml | xq | jq -r .Config.UrlBase)"
if [ "$arrUrlBase" = "null" ]; then
arrlBase=""
if [ "$arrUrlBase" == "null" ]; then
arrUrlBase=""
else
arrUrlBase="/$(echo "$arrUrlBase" | sed "s/\///g")"
fi
@ -30,7 +30,7 @@ log "Getting Trash Guide Recommended Movie Naming..."
movieNaming="$(curl -s https://raw.githubusercontent.com/TRaSH-/Guides/master/docs/Radarr/Radarr-recommended-naming-scheme.md | grep "{Movie Clean" | head -n 1)"
log "Updating Radarr Moving Naming..."
curl "$arrUrl/api/v3/config/naming" -X PUT -H "Content-Type: application/json" -H "X-Api-Key: $arrApiKey" --data-raw "{
updateArr=$(curl -s "$arrUrl/api/v3/config/naming" -X PUT -H "Content-Type: application/json" -H "X-Api-Key: $arrApiKey" --data-raw "{
\"renameMovies\":true,
\"replaceIllegalCharacters\":true,
\"colonReplacementFormat\":\"delete\",
@ -39,7 +39,7 @@ curl "$arrUrl/api/v3/config/naming" -X PUT -H "Content-Type: application/json" -
\"includeQuality\":false,
\"replaceSpaces\":false,
\"id\":1
}"
}")
log "Complete"
exit

Loading…
Cancel
Save