Your ROOT_URL in app.ini is https://git.cloudchain.link/ but you are visiting https://dash.bss.nz/open-source-mirrors/Lidarr/blame/commit/6ffb99f84fc97221beec3b7307239bce860af643/NzbDrone.Core/Jobs/EmptyRecycleBinJob.cs
You should set ROOT_URL correctly, otherwise the web may not work correctly.
|
|
|
|
using System.Linq;
|
|
|
|
|
using System;
|
|
|
|
|
using Ninject;
|
|
|
|
|
using NLog;
|
|
|
|
|
using NzbDrone.Core.Model.Notification;
|
|
|
|
|
using NzbDrone.Core.Providers;
|
|
|
|
|
using NzbDrone.Core.Providers.Converting;
|
|
|
|
|
|
|
|
|
|
namespace NzbDrone.Core.Jobs
|
|
|
|
|
{
|
|
|
|
|
public class EmptyRecycleBinJob : IJob
|
|
|
|
|
{
|
|
|
|
|
private readonly RecycleBinProvider _recycleBinProvider;
|
|
|
|
|
|
|
|
|
|
[Inject]
|
|
|
|
|
public EmptyRecycleBinJob(RecycleBinProvider recycleBinProvider)
|
|
|
|
|
{
|
|
|
|
|
_recycleBinProvider = recycleBinProvider;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public string Name
|
|
|
|
|
{
|
|
|
|
|
get { return "Empty Recycle Bin"; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public TimeSpan DefaultInterval
|
|
|
|
|
{
|
|
|
|
|
get { return TimeSpan.FromTicks(0); }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void Start(ProgressNotification notification, int targetId, int secondaryTargetId)
|
|
|
|
|
{
|
|
|
|
|
_recycleBinProvider.Empty();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|