Skip to content

Commit

Permalink
Added Radarr failed handling as workaround
Browse files Browse the repository at this point in the history
  • Loading branch information
Rouzax committed Nov 10, 2021
1 parent 1274d01 commit 87f5297
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion TorrentScript.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -805,7 +805,15 @@ function Import-Radarr {
}
until ($status.status -ne "started" -or ((Get-Date) -gt $endTime) )
if ($status.status -eq "completed") {
Write-HTMLLog -Column1 "Result:" -Column2 "Successful" -ColorBg "Success"
if ($status.duration -gt "00:00:05.0000000") {
Write-HTMLLog -Column1 "Result:" -Column2 "Successful" -ColorBg "Success"
}
else {
Write-HTMLLog -Column1 "Radarr:" -Column2 "Completed but failed" -ColorBg "Error"
Write-HTMLLog -Column1 "Radarr:" -Column2 "Radarr has no failed handling see: https://github.com/Radarr/Radarr/issues/5539" -ColorBg "Error"
Write-HTMLLog -Column1 "Result:" -Column2 "Failed" -ColorBg "Error"
Stop-Script -ExitReason "Radarr Error: $DownloadLabel - $DownloadName"
}
}
if ($status.status -eq "failed") {
Write-HTMLLog -Column1 "Radarr:" -Column2 $status.status -ColorBg "Error"
Expand Down

0 comments on commit 87f5297

Please sign in to comment.