Added todo, using Any()

This commit is contained in:
Mark McDowall 2013-02-27 14:29:08 -08:00
parent 143ce564c9
commit 0f940364a3
4 changed files with 4 additions and 2 deletions

View File

@ -106,6 +106,8 @@ namespace NzbDrone.Core.Jobs
public void AutoIgnoreSeasons(int seriesId)
{
//Todo: Need to convert this over to ObjectDb
return;
var episodeFiles = _mediaFileProvider.GetSeriesFiles(seriesId);
if (episodeFiles.Count() != 0)

View File

@ -53,7 +53,7 @@ namespace NzbDrone.Core.Providers
show.Seasons = s.Element("seasons").ConvertTo<Int32>();
show.Status = s.Element("status").Value;
show.RunTime = s.Element("seasons").ConvertTo<Int32>();
show.AirTime = s.Element("seasons").ConvertTo<DateTime>();
show.AirTime = s.Element("airtime").ConvertTo<DateTime>();
show.AirDay = s.Element("airday").ConvertToDayOfWeek();
searchResults.Add(show);

View File

@ -54,7 +54,7 @@ namespace NzbDrone.Core.Qualities
foreach (var quality in Quality.All().Where(q => q.Id > 0))
{
if(existing.SingleOrDefault(s => s.QualityId == quality.Id) == null)
if(!existing.Any(s => s.QualityId == quality.Id))
{
_qualitySizeRepository.Insert(new QualitySize
{

Binary file not shown.

Before

Width:  |  Height:  |  Size: 168 KiB