mirror of
https://github.com/Radarr/Radarr
synced 2026-01-08 00:23:00 +01:00
fix importing for StevenLu
This commit is contained in:
parent
e59db74cad
commit
e182d8b964
2 changed files with 2 additions and 7 deletions
|
|
@ -5,11 +5,6 @@
|
|||
namespace NzbDrone.Core.NetImport.StevenLu
|
||||
{
|
||||
public class StevenLuResponse
|
||||
{
|
||||
public Movie[] Movie { get; set; }
|
||||
}
|
||||
|
||||
public class Movie
|
||||
{
|
||||
public string title { get; set; }
|
||||
public string imdb_id { get; set; }
|
||||
|
|
|
|||
|
|
@ -42,7 +42,7 @@ public StevenLuParser(StevenLuSettings settings)
|
|||
return movies;
|
||||
}
|
||||
|
||||
var jsonResponse = JsonConvert.DeserializeObject<StevenLuResponse>(_importResponse.Content);
|
||||
var jsonResponse = JsonConvert.DeserializeObject<List<StevenLuResponse>>(_importResponse.Content);
|
||||
|
||||
// no movies were return
|
||||
if (jsonResponse == null)
|
||||
|
|
@ -50,7 +50,7 @@ public StevenLuParser(StevenLuSettings settings)
|
|||
return movies;
|
||||
}
|
||||
|
||||
foreach (var item in jsonResponse.Movie)
|
||||
foreach (var item in jsonResponse)
|
||||
{
|
||||
movies.AddIfNotNull(new Tv.Movie()
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue