mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-14 10:47:08 -07:00
More config pages have been added. AJAX to save. Order with jquery sortable.
Some RssFeed Parsing has been implemented, it does not currently download items, still need to perform a more verbose episode check.
This commit is contained in:
parent
65ecd58111
commit
da979639ba
145 changed files with 8384 additions and 113 deletions
|
@ -5,6 +5,7 @@ using System.Linq;
|
|||
using System.Text.RegularExpressions;
|
||||
using NLog;
|
||||
using NzbDrone.Core.Repository;
|
||||
using NzbDrone.Core.Repository.Quality;
|
||||
using SubSonic.Repository;
|
||||
using TvdbLib.Data;
|
||||
|
||||
|
@ -52,6 +53,11 @@ namespace NzbDrone.Core.Providers
|
|||
return _sonioRepo.Exists<Series>(c => c.SeriesId == id && c.Monitored);
|
||||
}
|
||||
|
||||
public bool QualityWanted(int seriesId, QualityTypes quality)
|
||||
{
|
||||
return _sonioRepo.Exists<Series>(s => s.SeriesId == seriesId && (QualityTypes)s.Quality == quality);
|
||||
}
|
||||
|
||||
public List<String> GetUnmappedFolders()
|
||||
{
|
||||
Logger.Debug("Generating list of unmapped folders");
|
||||
|
@ -83,7 +89,6 @@ namespace NzbDrone.Core.Providers
|
|||
return _tvDb.GetSeries(searchResults.Id, false);
|
||||
}
|
||||
|
||||
|
||||
public void AddSeries(string path, TvdbSeries series)
|
||||
{
|
||||
Logger.Info("Adding Series [{0}]:{1} Path: {2}", series.Id, series.SeriesName, path);
|
||||
|
@ -100,6 +105,11 @@ namespace NzbDrone.Core.Providers
|
|||
_sonioRepo.Add(repoSeries);
|
||||
}
|
||||
|
||||
public Series FindSeries(string cleanTitle)
|
||||
{
|
||||
return _sonioRepo.Single<Series>(s => s.CleanTitle == cleanTitle);
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region Static Helpers
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue