Added todo, using Any()

pull/6/head
Mark McDowall 12 years ago
parent 143ce564c9
commit 0f940364a3

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

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

@ -54,7 +54,7 @@ namespace NzbDrone.Core.Qualities
foreach (var quality in Quality.All().Where(q => q.Id > 0)) 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 _qualitySizeRepository.Insert(new QualitySize
{ {

Binary file not shown.

Before

Width:  |  Height:  |  Size: 168 KiB

Loading…
Cancel
Save