Fixed: Kodi GetMovies fails due to Parameter Type

Fixes #4405
pull/4421/head
Qstick 5 years ago
parent 4606503818
commit 5e0ba314d2

@ -1,4 +1,4 @@
using System.Collections.Generic;
using System.Collections.Generic;
using System.Linq;
using System.Net.Sockets;
using FluentValidation.Results;
@ -19,7 +19,7 @@ namespace NzbDrone.Core.Notifications.Xbmc
_logger = logger;
}
public override string Link => "http://xbmc.org/";
public override string Link => "https://kodi.tv/";
public override void OnGrab(GrabMessage grabMessage)
{

@ -59,7 +59,7 @@ namespace NzbDrone.Core.Notifications.Xbmc
public List<XbmcMovie> GetMovies(XbmcSettings settings)
{
var response = ProcessRequest(settings, "VideoLibrary.GetMovies", new[] { "file", "imdbnumber" });
var response = ProcessRequest(settings, "VideoLibrary.GetMovies", new List<string> { "file", "imdbnumber" });
return Json.Deserialize<MovieResponse>(response).Result.Movies;
}

Loading…
Cancel
Save