diff --git a/src/NzbDrone.Core.Test/UpdateTests/UpdateServiceFixture.cs b/src/NzbDrone.Core.Test/UpdateTests/UpdateServiceFixture.cs index 810dc8661..f02a8368d 100644 --- a/src/NzbDrone.Core.Test/UpdateTests/UpdateServiceFixture.cs +++ b/src/NzbDrone.Core.Test/UpdateTests/UpdateServiceFixture.cs @@ -24,7 +24,7 @@ public class UpdateServiceFixture : CoreTest private readonly UpdatePackage _updatePackage = new UpdatePackage { FileName = "NzbDrone.develop.2.0.0.zip", - Url = "http://update.nzbdrone.com/v2/develop/NzbDrone.develop.zip", + Url = "http://update.nzbdrone.com/v2/develop/windows/NzbDrone.develop.zip", Version = new Version("2.0.0") }; diff --git a/src/NzbDrone.Core/Update/UpdatePackageProvider.cs b/src/NzbDrone.Core/Update/UpdatePackageProvider.cs index e95d4c6fa..0b436adfb 100644 --- a/src/NzbDrone.Core/Update/UpdatePackageProvider.cs +++ b/src/NzbDrone.Core/Update/UpdatePackageProvider.cs @@ -22,6 +22,7 @@ public UpdatePackage GetLatestUpdate(string branch, Version currentVersion) var request = new RestRequest("/v1/update/{branch}"); request.AddParameter("version", currentVersion); + request.AddParameter("os", OsInfo.Os.ToString().ToLowerInvariant()); request.AddUrlSegment("branch", branch); var update = restClient.ExecuteAndValidate(request); @@ -38,6 +39,7 @@ public List GetRecentUpdates(string branch) var request = new RestRequest("/v1/update/{branch}/changes"); request.AddParameter("majorVersion", BuildInfo.Version.Major); + request.AddParameter("os", OsInfo.Os.ToString().ToLowerInvariant()); request.AddUrlSegment("branch", branch); var updates = restClient.ExecuteAndValidate>(request);