mirror of
https://github.com/Sonarr/Sonarr.git
synced 2024-12-12 11:15:43 +02:00
Added todo, using Any()
This commit is contained in:
parent
143ce564c9
commit
0f940364a3
@ -106,6 +106,8 @@ private void ScanSeries(ProgressNotification notification)
|
||||
|
||||
public void AutoIgnoreSeasons(int seriesId)
|
||||
{
|
||||
//Todo: Need to convert this over to ObjectDb
|
||||
return;
|
||||
var episodeFiles = _mediaFileProvider.GetSeriesFiles(seriesId);
|
||||
|
||||
if (episodeFiles.Count() != 0)
|
||||
|
@ -53,7 +53,7 @@ public virtual IList<TvRageSearchResult> SearchSeries(string title)
|
||||
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 @@ public void Init()
|
||||
|
||||
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 |
Loading…
Reference in New Issue
Block a user