mirror of
https://github.com/Radarr/Radarr.git
synced 2024-09-17 15:02:34 +02:00
parent
78e83488b9
commit
10074ae994
@ -1,4 +1,4 @@
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
|
|
||||||
namespace NzbDrone.Core.MetadataSource.SkyHook.Resource
|
namespace NzbDrone.Core.MetadataSource.SkyHook.Resource
|
||||||
{
|
{
|
||||||
@ -200,8 +200,8 @@ public class Video
|
|||||||
public class ListResponseRoot
|
public class ListResponseRoot
|
||||||
{
|
{
|
||||||
public string id { get; set; }
|
public string id { get; set; }
|
||||||
public Item[] results { get; set; }
|
public List<ListItem> items { get; set; }
|
||||||
public int total_results { get; set; }
|
public int item_count { get; set; }
|
||||||
public string iso_639_1 { get; set; }
|
public string iso_639_1 { get; set; }
|
||||||
public string name { get; set; }
|
public string name { get; set; }
|
||||||
public object poster_path { get; set; }
|
public object poster_path { get; set; }
|
||||||
@ -224,7 +224,7 @@ public class PersonCreditsRoot
|
|||||||
public int id { get; set; }
|
public int id { get; set; }
|
||||||
}
|
}
|
||||||
|
|
||||||
public class Item : MovieResult
|
public class ListItem : MovieResult
|
||||||
{
|
{
|
||||||
public string media_type { get; set; }
|
public string media_type { get; set; }
|
||||||
public string first_air_date { get; set; }
|
public string first_air_date { get; set; }
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using Newtonsoft.Json;
|
using Newtonsoft.Json;
|
||||||
using NzbDrone.Common.Extensions;
|
using NzbDrone.Common.Extensions;
|
||||||
using NzbDrone.Core.MetadataSource;
|
using NzbDrone.Core.MetadataSource;
|
||||||
@ -34,7 +34,7 @@ public override IList<Movie> ParseResponse(NetImportResponse importResponse)
|
|||||||
return movies;
|
return movies;
|
||||||
}
|
}
|
||||||
|
|
||||||
foreach (var movie in jsonResponse.results)
|
foreach (var movie in jsonResponse.items)
|
||||||
{
|
{
|
||||||
// Movies with no Year Fix
|
// Movies with no Year Fix
|
||||||
if (string.IsNullOrWhiteSpace(movie.release_date))
|
if (string.IsNullOrWhiteSpace(movie.release_date))
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using NLog;
|
using NLog;
|
||||||
using NzbDrone.Common.Http;
|
using NzbDrone.Common.Http;
|
||||||
|
|
||||||
@ -29,7 +29,7 @@ private IEnumerable<NetImportRequest> GetMoviesRequest()
|
|||||||
Logger.Info($"Importing TMDb movies from list: {Settings.ListId}");
|
Logger.Info($"Importing TMDb movies from list: {Settings.ListId}");
|
||||||
|
|
||||||
var requestBuilder = RequestBuilder.Create()
|
var requestBuilder = RequestBuilder.Create()
|
||||||
.SetSegment("api", "4")
|
.SetSegment("api", "3")
|
||||||
.SetSegment("route", "list")
|
.SetSegment("route", "list")
|
||||||
.SetSegment("id", Settings.ListId)
|
.SetSegment("id", Settings.ListId)
|
||||||
.SetSegment("secondaryRoute", "");
|
.SetSegment("secondaryRoute", "");
|
||||||
|
Loading…
Reference in New Issue
Block a user