1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2026-04-18 21:35:27 -04:00

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
+2
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)
+1 -1
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);
@@ -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