mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-10-02 00:34:37 +02:00
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:
@@ -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>
|
||||
|
Reference in New Issue
Block a user