TopSlider added for local series searching!

Should be easy to add others (would want to have it close other open ones, I think).
This commit is contained in:
Mark McDowall 2011-10-20 16:36:47 -07:00
commit 745d9d9355
13 changed files with 241 additions and 78 deletions

View file

@ -186,6 +186,21 @@ namespace NzbDrone.Core.Providers
return false;
}
public virtual List<Series> SearchForSeries(string title)
{
var query = String.Format(@"SELECT * FROM Series
INNER JOIN QualityProfiles ON Series.QualityProfileId = QualityProfiles.QualityProfileId
WHERE Title LIKE '{0}%'", title);
// var series = _database.Fetch<Series, QualityProfile>(@"SELECT * FROM Series
// INNER JOIN QualityProfiles ON Series.QualityProfileId = QualityProfiles.QualityProfileId
// WHERE Title LIKE '@0%'", title);
var series = _database.Fetch<Series, QualityProfile>(query);
return series;
}
/// <summary>
/// Cleans up the AirsTime Component from TheTVDB since it can be garbage that comes in.
/// </summary>