Manually mark a release as failed to start failed download process (history details)

This commit is contained in:
Mark McDowall
2013-10-30 16:49:53 -07:00
parent 70127125c2
commit da0f04d4c8
5 changed files with 59 additions and 7 deletions

View File

@@ -22,6 +22,7 @@ namespace NzbDrone.Core.History
List<History> Failed();
List<History> Grabbed();
History MostRecentForEpisode(int episodeId);
History Get(int id);
}
public class HistoryService : IHistoryService, IHandle<EpisodeGrabbedEvent>, IHandle<EpisodeImportedEvent>, IHandle<DownloadFailedEvent>
@@ -65,6 +66,11 @@ namespace NzbDrone.Core.History
return _historyRepository.MostRecentForEpisode(episodeId);
}
public History Get(int id)
{
return _historyRepository.Get(id);
}
public void Purge()
{
_historyRepository.Purge();