Your ROOT_URL in app.ini is https://git.cloudchain.link/ but you are visiting https://dash.bss.nz/open-source-mirrors/Radarr/commit/609585510290a14f827ef6547e2fd037c43b2ff2?style=unified&whitespace=show-all
You should set ROOT_URL correctly, otherwise the web may not work correctly.
2 changed files with
39 additions and
11 deletions
@ -68,6 +68,28 @@ namespace NzbDrone.Core.Test.Download
AssertDownloadNotFailed ( ) ;
}
[Test]
public void should_warn_if_matching_history_is_not_found ( )
{
_trackedDownload . DownloadItem . Status = DownloadItemStatus . Failed ;
GivenNoGrabbedHistory ( ) ;
Subject . Process ( _trackedDownload ) ;
_trackedDownload . StatusMessages . Should ( ) . NotBeEmpty ( ) ;
}
[Test]
public void should_not_warn_if_matching_history_is_not_found_and_not_failed ( )
{
_trackedDownload . DownloadItem . Status = DownloadItemStatus . Failed ;
GivenNoGrabbedHistory ( ) ;
Subject . Process ( _trackedDownload ) ;
_trackedDownload . StatusMessages . Should ( ) . NotBeEmpty ( ) ;
}
[Test]
public void should_mark_failed_if_encrypted ( )
{
@ -54,24 +54,30 @@ namespace NzbDrone.Core.Download
public void Process ( TrackedDownload trackedDownload )
{
var grabbedItems = _historyService . Find ( trackedDownload . DownloadItem . DownloadId , HistoryEventType . Grabbed )
. ToList ( ) ;
if ( grabbedItems . Empty ( ) )
{
trackedDownload . Warn ( "Download wasn't grabbed by sonarr, skipping" ) ;
return ;
}
string failure = null ;
if ( trackedDownload . DownloadItem . IsEncrypted )
{
trackedDownload . State = TrackedDownloadStage . DownloadFailed ;
PublishDownloadFailedEvent ( grabbedItems , "Encrypted download detected" , trackedDownload ) ;
failure = "Encrypted download detected" ;
}
else if ( trackedDownload . DownloadItem . Status = = DownloadItemStatus . Failed )
{
failure = trackedDownload . DownloadItem . Message ? ? "Failed download detected" ;
}
if ( failure ! = null )
{
var grabbedItems = _historyService . Find ( trackedDownload . DownloadItem . DownloadId , HistoryEventType . Grabbed )
. ToList ( ) ;
if ( grabbedItems . Empty ( ) )
{
trackedDownload . Warn ( "Download wasn't grabbed by sonarr, skipping" ) ;
return ;
}
trackedDownload . State = TrackedDownloadStage . DownloadFailed ;
PublishDownloadFailedEvent ( grabbedItems , trackedDownload . DownloadItem . Message , trackedDownload ) ;
PublishDownloadFailedEvent ( grabbedItems , failur e, trackedDownload ) ;
}
}