1
0
Fork 0
mirror of https://github.com/lidarr/Lidarr synced 2025-01-31 11:22:06 +00:00

Add major version to changes request

This commit is contained in:
Mark McDowall 2014-03-07 19:00:18 -08:00
parent 2ad2859618
commit 04f07aefe1

View file

@ -1,6 +1,7 @@
using System;
using System.Collections.Generic;
using NzbDrone.Common;
using NzbDrone.Common.EnvironmentInfo;
using RestSharp;
using NzbDrone.Core.Rest;
@ -36,6 +37,7 @@ public List<UpdatePackage> GetRecentUpdates(string branch)
var request = new RestRequest("/v1/update/{branch}/changes");
request.AddParameter("majorVersion", BuildInfo.Version.Major);
request.AddUrlSegment("branch", branch);
var updates = restClient.ExecuteAndValidate<List<UpdatePackage>>(request);