From 4010a5336c14d2fff73346a9939c84148d3fe663 Mon Sep 17 00:00:00 2001 From: Mark McDowall Date: Mon, 25 May 2015 22:08:35 -0700 Subject: [PATCH] Version and product for MyPlex Authentication --- src/NzbDrone.Core/Notifications/Plex/PlexServerProxy.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/NzbDrone.Core/Notifications/Plex/PlexServerProxy.cs b/src/NzbDrone.Core/Notifications/Plex/PlexServerProxy.cs index 24d90e5c1..71d149768 100644 --- a/src/NzbDrone.Core/Notifications/Plex/PlexServerProxy.cs +++ b/src/NzbDrone.Core/Notifications/Plex/PlexServerProxy.cs @@ -4,6 +4,7 @@ using Newtonsoft.Json.Linq; using NLog; using NzbDrone.Common.Cache; +using NzbDrone.Common.EnvironmentInfo; using NzbDrone.Common.Extensions; using NzbDrone.Common.Serializer; using NzbDrone.Core.Rest; @@ -90,8 +91,8 @@ private RestRequest GetMyPlexRequest(string resource, Method method) request.AddHeader("X-Plex-Provides", "player"); request.AddHeader("X-Plex-Client-Identifier", "AB6CCCC7-5CF5-4523-826A-B969E0FFD8A0"); request.AddHeader("X-Plex-Device-Name", "Sonarr"); - request.AddHeader("X-Plex-Product", "PlexWMC"); - request.AddHeader("X-Plex-Version", "0"); + request.AddHeader("X-Plex-Product", "Sonarr"); + request.AddHeader("X-Plex-Version", BuildInfo.Version.ToString()); return request; }