|
|
@ -3,8 +3,8 @@ scriptVersion="1.0.001"
|
|
|
|
|
|
|
|
|
|
|
|
if [ -z "$arrUrl" ] || [ -z "$arrApiKey" ]; then
|
|
|
|
if [ -z "$arrUrl" ] || [ -z "$arrApiKey" ]; then
|
|
|
|
arrUrlBase="$(cat /config/config.xml | xq | jq -r .Config.UrlBase)"
|
|
|
|
arrUrlBase="$(cat /config/config.xml | xq | jq -r .Config.UrlBase)"
|
|
|
|
if [ "$arrUrlBase" = "null" ]; then
|
|
|
|
if [ "$arrUrlBase" == "null" ]; then
|
|
|
|
arrlBase=""
|
|
|
|
arrUrlBase=""
|
|
|
|
else
|
|
|
|
else
|
|
|
|
arrUrlBase="/$(echo "$arrUrlBase" | sed "s/\///g")"
|
|
|
|
arrUrlBase="/$(echo "$arrUrlBase" | sed "s/\///g")"
|
|
|
|
fi
|
|
|
|
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)"
|
|
|
|
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..."
|
|
|
|
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,
|
|
|
|
\"renameMovies\":true,
|
|
|
|
\"replaceIllegalCharacters\":true,
|
|
|
|
\"replaceIllegalCharacters\":true,
|
|
|
|
\"colonReplacementFormat\":\"delete\",
|
|
|
|
\"colonReplacementFormat\":\"delete\",
|
|
|
@ -39,7 +39,7 @@ curl "$arrUrl/api/v3/config/naming" -X PUT -H "Content-Type: application/json" -
|
|
|
|
\"includeQuality\":false,
|
|
|
|
\"includeQuality\":false,
|
|
|
|
\"replaceSpaces\":false,
|
|
|
|
\"replaceSpaces\":false,
|
|
|
|
\"id\":1
|
|
|
|
\"id\":1
|
|
|
|
}"
|
|
|
|
}")
|
|
|
|
|
|
|
|
|
|
|
|
log "Complete"
|
|
|
|
log "Complete"
|
|
|
|
exit
|
|
|
|
exit
|
|
|
|