v1.6 - Disabling ARR app refresh monitored downloads trigger
ARR app already has the job scheduled to run every minute, so no need to manually trigger it...
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
#!/bin/bash
|
||||
scriptVersion="1.5"
|
||||
scriptVersion="1.6"
|
||||
scriptName="Video"
|
||||
|
||||
#### Import Settings
|
||||
@@ -170,7 +170,7 @@ VideoSmaProcess (){
|
||||
arrApiKey="$radarrArrApiKey"
|
||||
fi
|
||||
log "$count of $fileCount :: Refreshing Radarr app Queue"
|
||||
refreshQueue=$(curl -s "$arrUrl/api/v3/command" -X POST -H 'Content-Type: application/json' -H "X-Api-Key: $arrApiKey" --data-raw '{"name":"RefreshMonitoredDownloads"}')
|
||||
#refreshQueue=$(curl -s "$arrUrl/api/v3/command" -X POST -H 'Content-Type: application/json' -H "X-Api-Key: $arrApiKey" --data-raw '{"name":"RefreshMonitoredDownloads"}')
|
||||
# ArrWaitForTaskCompletion
|
||||
arrItemId=$(curl -s "$arrUrl/api/v3/queue?page=1&pageSize=50&sortDirection=ascending&sortKey=timeleft&includeUnknownMovieItems=true&apikey=$arrApiKey" | jq -r --arg id "$downloadId" '.records[] | select(.downloadId==$id) | .movieId')
|
||||
arrItemData=$(curl -s "$arrUrl/api/v3/movie/$arrItemId?apikey=$arrApiKey")
|
||||
@@ -188,7 +188,7 @@ VideoSmaProcess (){
|
||||
arrApiKey="$sonarrArrApiKey"
|
||||
fi
|
||||
log "$count of $fileCount :: Refreshing Sonarr app Queue"
|
||||
refreshQueue=$(curl -s "$arrUrl/api/v3/command" -X POST -H 'Content-Type: application/json' -H "X-Api-Key: $arrApiKey" --data-raw '{"name":"RefreshMonitoredDownloads"}')
|
||||
#refreshQueue=$(curl -s "$arrUrl/api/v3/command" -X POST -H 'Content-Type: application/json' -H "X-Api-Key: $arrApiKey" --data-raw '{"name":"RefreshMonitoredDownloads"}')
|
||||
# ArrWaitForTaskCompletion
|
||||
arrQueueItemData=$(curl -s "$arrUrl/api/v3/queue?page=1&pageSize=50&sortDirection=ascending&sortKey=timeleft&includeUnknownSeriesItems=true&apikey=$arrApiKey" | jq -r --arg id "$downloadId" '.records[] | select(.downloadId==$id)')
|
||||
arrSeriesId="$(echo $arrQueueItemData | jq -r .seriesId)"
|
||||
|
||||
Reference in New Issue
Block a user