Episode Activity added

New: Activity tab added to Episode Details
This commit is contained in:
Mark McDowall
2013-10-03 23:01:02 -07:00
parent d0d65db4f2
commit c0b7612053
14 changed files with 182 additions and 15 deletions

View File

@@ -17,6 +17,7 @@ namespace NzbDrone.Core.History
void Trim();
QualityModel GetBestQualityInHistory(int episodeId);
PagingSpec<History> Paged(PagingSpec<History> pagingSpec);
List<History> ByEpisode(int episodeId);
}
public class HistoryService : IHistoryService, IHandle<EpisodeGrabbedEvent>, IHandle<EpisodeImportedEvent>
@@ -40,6 +41,11 @@ namespace NzbDrone.Core.History
return _historyRepository.GetPaged(pagingSpec);
}
public List<History> ByEpisode(int episodeId)
{
return _historyRepository.ByEpisode(episodeId);
}
public void Purge()
{
_historyRepository.Purge();