mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-21 14:03:29 -07:00
HistoryProvider will return History Items with Episode and SeriesTitle.
This commit is contained in:
parent
5c055ebb9a
commit
0972c956b8
3 changed files with 29 additions and 24 deletions
|
@ -25,9 +25,18 @@ namespace NzbDrone.Core.Providers
|
|||
{
|
||||
}
|
||||
|
||||
public virtual IEnumerable<History> AllItems()
|
||||
public virtual List<History> AllItems()
|
||||
{
|
||||
return _database.Query<History>("");
|
||||
return _database.Fetch<History>("");
|
||||
}
|
||||
|
||||
public virtual List<History> AllItemsWithRelationships()
|
||||
{
|
||||
return _database.Fetch<History, Episode>(@"
|
||||
SELECT History.*, Series.Title as SeriesTitle, Episodes.* FROM History
|
||||
INNER JOIN Series ON History.SeriesId = Series.SeriesId
|
||||
INNER JOIN Episodes ON History.EpisodeId = Episodes.EpisodeId
|
||||
");
|
||||
}
|
||||
|
||||
public virtual void Purge()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue