|
|
@ -13,6 +13,7 @@ using NzbDrone.Core.Messaging.Events;
|
|
|
|
using NzbDrone.Core.Parser.Model;
|
|
|
|
using NzbDrone.Core.Parser.Model;
|
|
|
|
using NzbDrone.Core.Profiles;
|
|
|
|
using NzbDrone.Core.Profiles;
|
|
|
|
using NzbDrone.Core.Qualities;
|
|
|
|
using NzbDrone.Core.Qualities;
|
|
|
|
|
|
|
|
using NzbDrone.Core.Tv.Events;
|
|
|
|
|
|
|
|
|
|
|
|
namespace NzbDrone.Core.History
|
|
|
|
namespace NzbDrone.Core.History
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -31,7 +32,8 @@ namespace NzbDrone.Core.History
|
|
|
|
IHandle<EpisodeGrabbedEvent>,
|
|
|
|
IHandle<EpisodeGrabbedEvent>,
|
|
|
|
IHandle<EpisodeImportedEvent>,
|
|
|
|
IHandle<EpisodeImportedEvent>,
|
|
|
|
IHandle<DownloadFailedEvent>,
|
|
|
|
IHandle<DownloadFailedEvent>,
|
|
|
|
IHandle<EpisodeFileDeletedEvent>
|
|
|
|
IHandle<EpisodeFileDeletedEvent>,
|
|
|
|
|
|
|
|
IHandle<SeriesDeletedEvent>
|
|
|
|
{
|
|
|
|
{
|
|
|
|
private readonly IHistoryRepository _historyRepository;
|
|
|
|
private readonly IHistoryRepository _historyRepository;
|
|
|
|
private readonly Logger _logger;
|
|
|
|
private readonly Logger _logger;
|
|
|
@ -255,5 +257,10 @@ namespace NzbDrone.Core.History
|
|
|
|
_historyRepository.Insert(history);
|
|
|
|
_historyRepository.Insert(history);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public void Handle(SeriesDeletedEvent message)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
_historyRepository.DeleteForSeries(message.Series.Id);
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|