Update AutoConfig.service

This commit is contained in:
RandomNinjaAtk 2023-09-15 04:31:24 -07:00 committed by GitHub
parent ba7ac2c5fc
commit 8b8f3bf844
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -58,24 +58,7 @@ fi
if [ "$configureMediaManagement" == "true" ] || [ -z "$configureMediaManagement" ]; then
log "Updating Sonrr Media Management..."
updateArr=$(curl -s "$arrUrl/api/v3/config/mediamanagement" -X PUT -H "Content-Type: application/json" -H "X-Api-Key: $arrApiKey" --data-raw '{"autoUnmonitorPreviouslyDownloadedEpisodes":false,
"recycleBin":"",
"recycleBinCleanupDays":7,
"downloadPropersAndRepacks":"doNotPrefer",
"createEmptySeriesFolders":false,
"deleteEmptyFolders":true,
"fileDate":"utcAirDate",
"rescanAfterRefresh":"never",
"setPermissionsLinux":false,
"chmodFolder":"777",
"chownGroup":"",
"episodeTitleRequired":"always",
"skipFreeSpaceCheckWhenImporting":false,
"minimumFreeSpaceWhenImporting":100,
"copyUsingHardlinks":true,
"importExtraFiles":true,
"extraFileExtensions":"srt",
"enableMediaInfo":true,"id":1}')
updateArr=$(curl -s "$arrUrl/api/v3/config/mediamanagement" -X PUT -H "Content-Type: application/json" -H "X-Api-Key: $arrApiKey" --data-raw '{"autoUnmonitorPreviouslyDownloadedEpisodes":false,"recycleBin":"","recycleBinCleanupDays":7,"downloadPropersAndRepacks":"doNotPrefer","createEmptySeriesFolders":false,"deleteEmptyFolders":true,"fileDate":"utcAirDate","rescanAfterRefresh":"always","setPermissionsLinux":false,"chmodFolder":"777","chownGroup":"","episodeTitleRequired":"always","skipFreeSpaceCheckWhenImporting":false,"minimumFreeSpaceWhenImporting":100,"copyUsingHardlinks":true,"useScriptImport":false,"scriptImportPath":"","importExtraFiles":true,"extraFileExtensions":"srt","enableMediaInfo":true,"id":1}')
log "Complete"
fi