File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 11#! /bin/bash
2- scriptVersion=" 1.4 "
2+ scriptVersion=" 1.5 "
33scriptName=" 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) "
You can’t perform that action at this time.
0 commit comments