1
0
mirror of https://github.com/Radarr/Radarr.git synced 2026-04-28 23:07:13 -04:00

Fixed: Use v3 API for Lists to prevent needing pagination

Fixes #4441
This commit is contained in:
Qstick
2020-05-18 21:14:52 -04:00
parent 78e83488b9
commit 10074ae994
3 changed files with 8 additions and 8 deletions
@@ -1,4 +1,4 @@
using System.Collections.Generic;
using System.Collections.Generic;
using Newtonsoft.Json;
using NzbDrone.Common.Extensions;
using NzbDrone.Core.MetadataSource;
@@ -34,7 +34,7 @@ namespace NzbDrone.Core.NetImport.TMDb.List
return movies;
}
foreach (var movie in jsonResponse.results)
foreach (var movie in jsonResponse.items)
{
// Movies with no Year Fix
if (string.IsNullOrWhiteSpace(movie.release_date))
@@ -1,4 +1,4 @@
using System.Collections.Generic;
using System.Collections.Generic;
using NLog;
using NzbDrone.Common.Http;
@@ -29,7 +29,7 @@ namespace NzbDrone.Core.NetImport.TMDb.List
Logger.Info($"Importing TMDb movies from list: {Settings.ListId}");
var requestBuilder = RequestBuilder.Create()
.SetSegment("api", "4")
.SetSegment("api", "3")
.SetSegment("route", "list")
.SetSegment("id", Settings.ListId)
.SetSegment("secondaryRoute", "");