Fixed: Empty or private MDBList lists shown as valid on save

pull/10420/head
Bogdan 1 week ago
parent 7a55b563c0
commit 96e60906c5

@ -1,4 +1,5 @@
using System.Collections.Generic;
using System.Linq;
using Newtonsoft.Json;
using NzbDrone.Common.Extensions;
using NzbDrone.Common.Http;
@ -28,7 +29,9 @@ namespace NzbDrone.Core.ImportLists.RadarrList
return movies;
}
return jsonResponse.SelectList(m => new ImportListMovie { TmdbId = m.Id });
return jsonResponse
.Where(m => m.Id > 0)
.SelectList(m => new ImportListMovie { TmdbId = m.Id });
}
protected virtual bool PreProcess(ImportListResponse importListResponse)

Loading…
Cancel
Save