mirror of
https://github.com/Radarr/Radarr.git
synced 2024-11-20 01:42:35 +01:00
Fixed: Empty or private MDBList lists shown as valid on save
This commit is contained in:
parent
7a55b563c0
commit
96e60906c5
@ -1,4 +1,5 @@
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
using Newtonsoft.Json;
|
using Newtonsoft.Json;
|
||||||
using NzbDrone.Common.Extensions;
|
using NzbDrone.Common.Extensions;
|
||||||
using NzbDrone.Common.Http;
|
using NzbDrone.Common.Http;
|
||||||
@ -28,7 +29,9 @@ public IList<ImportListMovie> ParseResponse(ImportListResponse importListRespons
|
|||||||
return movies;
|
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)
|
protected virtual bool PreProcess(ImportListResponse importListResponse)
|
||||||
|
Loading…
Reference in New Issue
Block a user