Skip to content

Commit cef39d9

Browse files
v1.5 - Remove pause waiting for ARR app tasks to be cleared...
1 parent bc22727 commit cef39d9

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

sabnzbd/video.bash

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

55
#### Import Settings
@@ -170,8 +170,8 @@ 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"}')
174-
ArrWaitForTaskCompletion
173+
refreshQueue=$(curl -s "$arrUrl/api/v3/command" -X POST -H 'Content-Type: application/json' -H "X-Api-Key: $arrApiKey" --data-raw '{"name":"RefreshMonitoredDownloads"}')
174+
# 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")
177177
onlineSourceId="$(echo "$arrItemData" | jq -r ".tmdbId")"
@@ -189,7 +189,7 @@ VideoSmaProcess (){
189189
fi
190190
log "$count of $fileCount :: Refreshing Sonarr app Queue"
191191
refreshQueue=$(curl -s "$arrUrl/api/v3/command" -X POST -H 'Content-Type: application/json' -H "X-Api-Key: $arrApiKey" --data-raw '{"name":"RefreshMonitoredDownloads"}')
192-
ArrWaitForTaskCompletion
192+
# 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)"
195195
arrEpisodeId="$(echo $arrQueueItemData | jq -r .episodeId)"

0 commit comments

Comments
 (0)