1.0.0014 - Check Lidarr for root folder, if none found, exit script...

pull/6/head
RandomNinjaAtk 3 years ago committed by GitHub
parent a42dada863
commit 071c9c2208
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -35,7 +35,7 @@ Configuration () {
log ""
sleep 2
log "############# $dockerTitle"
log "############# SCRIPT VERSION 1.0.0013"
log "############# SCRIPT VERSION 1.0.0014"
log "############# DOCKER VERSION $dockerVersion"
if [ -z $topLimit ]; then
@ -412,6 +412,13 @@ ConfigureLidarrWithOptimalSettings () {
log ":: Configuring Lidarr UI Settings"
postSettingsToLidarr=$(curl -s "$lidarrUrl/api/v1/config/u" -X PUT -H 'Content-Type: application/json' -H "X-Api-Key: ${lidarrApiKey}" --data-raw '{"firstDayOfWeek":0,"calendarWeekColumnHeader":"ddd M/D","shortDateFormat":"MMM D YYYY","longDateFormat":"dddd, MMMM D YYYY","timeFormat":"h(:mm)a","showRelativeDates":true,"enableColorImpairedMode":true,"uiLanguage":1,"expandAlbumByDefault":true,"expandSingleByDefault":true,"expandEPByDefault":true,"expandBroadcastByDefault":true,"expandOtherByDefault":true,"id":1}')
if curl -s "$lidarrUrl/api/v1/rootFolder" -H "X-Api-Key: ${lidarrApiKey}" | grep "[]" | read; then
log ":: ERROR :: No root folder found"
log ":: ERROR :: Configure root folder in Lidarr to continue..."
log ":: ERROR :: Exiting..."
exit
fi
}
GetMissingCutOffList () {

Loading…
Cancel
Save