From cef39d9b9476a2363d095d8b2b41d2543890e2c6 Mon Sep 17 00:00:00 2001 From: RandomNinjaAtk Date: Fri, 10 Jan 2025 23:07:53 -0500 Subject: [PATCH] v1.5 - Remove pause waiting for ARR app tasks to be cleared... --- sabnzbd/video.bash | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sabnzbd/video.bash b/sabnzbd/video.bash index a56ee0e..079a8c4 100644 --- a/sabnzbd/video.bash +++ b/sabnzbd/video.bash @@ -1,5 +1,5 @@ #!/bin/bash -scriptVersion="1.4" +scriptVersion="1.5" scriptName="Video" #### Import Settings @@ -170,8 +170,8 @@ 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"}') - ArrWaitForTaskCompletion + 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") onlineSourceId="$(echo "$arrItemData" | jq -r ".tmdbId")" @@ -189,7 +189,7 @@ VideoSmaProcess (){ 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"}') - ArrWaitForTaskCompletion + # 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)" arrEpisodeId="$(echo $arrQueueItemData | jq -r .episodeId)"