Added history details modal

This commit is contained in:
Mark McDowall 2013-08-25 22:31:58 -07:00
parent 932012d7f9
commit 1c4a687854
9 changed files with 139 additions and 6 deletions

View file

@ -1,5 +1,6 @@
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using NLog;
using NzbDrone.Common.Messaging;
@ -89,9 +90,12 @@ namespace NzbDrone.Core.History
Quality = message.EpisodeFile.Quality,
SourceTitle = message.EpisodeFile.Path,
SeriesId = message.EpisodeFile.SeriesId,
EpisodeId = episode.Id,
EpisodeId = episode.Id
};
history.Data.Add("Path", message.EpisodeFile.Path);
history.Data.Add("Filename", Path.GetFileNameWithoutExtension(message.EpisodeFile.Path));
_historyRepository.Insert(history);
}
}