mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-14 10:47:08 -07:00
Episode searching now stores the results of the tests.
This commit is contained in:
parent
b9e3d1a921
commit
c7f8f57f77
13 changed files with 314 additions and 81 deletions
24
NzbDrone.Core/Repository/Search/SearchResult.cs
Normal file
24
NzbDrone.Core/Repository/Search/SearchResult.cs
Normal file
|
@ -0,0 +1,24 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using NzbDrone.Core.Model;
|
||||
using NzbDrone.Core.Repository.Quality;
|
||||
using PetaPoco;
|
||||
|
||||
namespace NzbDrone.Core.Repository.Search
|
||||
{
|
||||
[PrimaryKey("Id", autoIncrement = true)]
|
||||
[TableName("SearchResults")]
|
||||
public class SearchResult
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public int SeriesId { get; set; }
|
||||
public int? SeasonNumber { get; set; }
|
||||
public int? EpisodeId { get; set; }
|
||||
public DateTime? AirDate { get; set; }
|
||||
public DateTime SearchTime { get; set; }
|
||||
|
||||
[ResultColumn]
|
||||
public List<SearchResultItem> SearchResultItems { get; set; }
|
||||
}
|
||||
}
|
22
NzbDrone.Core/Repository/Search/SearchResultItem.cs
Normal file
22
NzbDrone.Core/Repository/Search/SearchResultItem.cs
Normal file
|
@ -0,0 +1,22 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using NzbDrone.Core.Model;
|
||||
using NzbDrone.Core.Repository.Quality;
|
||||
using PetaPoco;
|
||||
|
||||
namespace NzbDrone.Core.Repository.Search
|
||||
{
|
||||
[PrimaryKey("Id", autoIncrement = true)]
|
||||
[TableName("SearchResultItems")]
|
||||
public class SearchResultItem
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public int SearchResultId { get; set; }
|
||||
public string ReportTitle { get; set; }
|
||||
public string NzbUrl { get; set; }
|
||||
public string NzbInfoUrl { get; set; }
|
||||
public bool Success { get; set; }
|
||||
public ReportRejectionType SearchError { get; set; }
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue