mirror of
https://github.com/Radarr/Radarr
synced 2025-01-03 05:44:50 +00:00
Fixed: Empty or private MDBList lists shown as valid on save
This commit is contained in:
parent
7a55b563c0
commit
96e60906c5
1 changed files with 4 additions and 1 deletions
|
@ -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 @@ public IList<ImportListMovie> ParseResponse(ImportListResponse importListRespons
|
|||
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…
Reference in a new issue