Skip to content

Commit 5714eeb

Browse files
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...
1 parent cef39d9 commit 5714eeb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

sabnzbd/video.bash

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/bin/bash
2-
scriptVersion="1.5"
2+
scriptVersion="1.6"
33
scriptName="Video"
44

55
#### Import Settings
@@ -170,7 +170,7 @@ VideoSmaProcess (){
170170
arrApiKey="$radarrArrApiKey"
171171
fi
172172
log "$count of $fileCount :: Refreshing Radarr app Queue"
173-
refreshQueue=$(curl -s "$arrUrl/api/v3/command" -X POST -H 'Content-Type: application/json' -H "X-Api-Key: $arrApiKey" --data-raw '{"name":"RefreshMonitoredDownloads"}')
173+
#refreshQueue=$(curl -s "$arrUrl/api/v3/command" -X POST -H 'Content-Type: application/json' -H "X-Api-Key: $arrApiKey" --data-raw '{"name":"RefreshMonitoredDownloads"}')
174174
# ArrWaitForTaskCompletion
175175
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')
176176
arrItemData=$(curl -s "$arrUrl/api/v3/movie/$arrItemId?apikey=$arrApiKey")
@@ -188,7 +188,7 @@ VideoSmaProcess (){
188188
arrApiKey="$sonarrArrApiKey"
189189
fi
190190
log "$count of $fileCount :: Refreshing Sonarr app Queue"
191-
refreshQueue=$(curl -s "$arrUrl/api/v3/command" -X POST -H 'Content-Type: application/json' -H "X-Api-Key: $arrApiKey" --data-raw '{"name":"RefreshMonitoredDownloads"}')
191+
#refreshQueue=$(curl -s "$arrUrl/api/v3/command" -X POST -H 'Content-Type: application/json' -H "X-Api-Key: $arrApiKey" --data-raw '{"name":"RefreshMonitoredDownloads"}')
192192
# ArrWaitForTaskCompletion
193193
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)')
194194
arrSeriesId="$(echo $arrQueueItemData | jq -r .seriesId)"

0 commit comments

Comments
 (0)