Configure Media Management

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

@ -1,5 +1,5 @@
#!/usr/bin/env bash
scriptVersion="1.0.001"
scriptVersion="1.0.002"
if [ -z "$arrUrl" ] || [ -z "$arrApiKey" ]; then
arrUrlBase="$(cat /config/config.xml | xq | jq -r .Config.UrlBase)"
@ -42,4 +42,30 @@ updateArr=$(curl -s "$arrUrl/api/v3/config/naming" -X PUT -H "Content-Type: appl
}")
log "Complete"
log "Updating Radarr Media Management..."
updateArr=$(curl -s "$arrUrl/api/v3/config/mediamanagement" -X PUT -H "Content-Type: application/json" -H "X-Api-Key: $arrApiKey" --data-raw '{
"autoUnmonitorPreviouslyDownloadedMovies":false,
"recycleBin":"",
"recycleBinCleanupDays":7,
"downloadPropersAndRepacks":"doNotPrefer",
"createEmptyMovieFolders":false,
"deleteEmptyFolders":true,
"fileDate":"none",
"rescanAfterRefresh":"always",
"autoRenameFolders":false,
"pathsDefaultStatic":false,
"setPermissionsLinux":true,
"chmodFolder":"777",
"chownGroup":"666",
"skipFreeSpaceCheckWhenImporting":false,
"minimumFreeSpaceWhenImporting":100,
"copyUsingHardlinks":true,
"importExtraFiles":true,
"extraFileExtensions":"srt",
"enableMediaInfo":true,
"id":1
}')
log "Complete"
exit

Loading…
Cancel
Save