Your ROOT_URL in app.ini is https://git.cloudchain.link/ but you are visiting https://dash.bss.nz/open-source-mirrors/Readarr/commit/8dbd0069784bf5c35868b9e2f6b71163bb15d7f5
You should set ROOT_URL correctly, otherwise the web may not work correctly.
3 changed files with
21 additions and
2 deletions
@ -1,4 +1,4 @@
using NzbDrone.Common.Messaging ;
using NzbDrone.Common.Messaging ;
using NzbDrone.Core.Download.TrackedDownloads ;
namespace NzbDrone.Core.Download
@ -6,7 +6,7 @@ using NzbDrone.Core.ThingiProvider;
namespace NzbDrone.Core.Download
{
[DebuggerDisplay("{DownloadClient Name}:{Title}")]
[DebuggerDisplay("{DownloadClient Info?. Name}:{Title}")]
public class DownloadClientItem
{
public DownloadClientItemClientInfo DownloadClientInfo { get ; set ; }
@ -32,9 +32,18 @@ namespace NzbDrone.Core.Download
_logger = logger ;
}
private void RemoveCompletedDownloads ( List < TrackedDownload > trackedDownloads )
{
foreach ( var trackedDownload in trackedDownloads . Where ( c = > c . DownloadItem . CanBeRemoved & & c . State = = TrackedDownloadState . Imported ) )
{
_eventAggregator . PublishEvent ( new DownloadCompletedEvent ( trackedDownload ) ) ;
}
}
public void Execute ( ProcessMonitoredDownloadsCommand message )
{
var enableCompletedDownloadHandling = _configService . EnableCompletedDownloadHandling ;
var removeCompletedDownloads = _configService . RemoveCompletedDownloads ;
var trackedDownloads = _trackedDownloadService . GetTrackedDownloads ( )
. Where ( t = > t . IsTrackable )
. ToList ( ) ;
@ -46,10 +55,20 @@ namespace NzbDrone.Core.Download
if ( trackedDownload . State = = TrackedDownloadState . DownloadFailedPending )
{
_failedDownloadService . ProcessFailed ( trackedDownload ) ;
continue ;
}
else if ( enableCompletedDownloadHandling & & trackedDownload . State = = TrackedDownloadState . ImportPending )
{
_completedDownloadService . Import ( trackedDownload ) ;
continue ;
}
if ( removeCompletedDownloads & &
trackedDownload . DownloadItem . Removed & &
trackedDownload . DownloadItem . CanBeRemoved & &
trackedDownload . State = = TrackedDownloadState . Imported )
{
_eventAggregator . PublishEvent ( new DownloadCanBeRemovedEvent ( trackedDownload ) ) ;
}
}
catch ( Exception e )