mirror of
https://github.com/Radarr/Radarr
synced 2025-02-27 16:42:46 +00:00
Version and product for MyPlex Authentication
This commit is contained in:
parent
a090ed8b5e
commit
4010a5336c
1 changed files with 3 additions and 2 deletions
|
@ -4,6 +4,7 @@
|
||||||
using Newtonsoft.Json.Linq;
|
using Newtonsoft.Json.Linq;
|
||||||
using NLog;
|
using NLog;
|
||||||
using NzbDrone.Common.Cache;
|
using NzbDrone.Common.Cache;
|
||||||
|
using NzbDrone.Common.EnvironmentInfo;
|
||||||
using NzbDrone.Common.Extensions;
|
using NzbDrone.Common.Extensions;
|
||||||
using NzbDrone.Common.Serializer;
|
using NzbDrone.Common.Serializer;
|
||||||
using NzbDrone.Core.Rest;
|
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-Provides", "player");
|
||||||
request.AddHeader("X-Plex-Client-Identifier", "AB6CCCC7-5CF5-4523-826A-B969E0FFD8A0");
|
request.AddHeader("X-Plex-Client-Identifier", "AB6CCCC7-5CF5-4523-826A-B969E0FFD8A0");
|
||||||
request.AddHeader("X-Plex-Device-Name", "Sonarr");
|
request.AddHeader("X-Plex-Device-Name", "Sonarr");
|
||||||
request.AddHeader("X-Plex-Product", "PlexWMC");
|
request.AddHeader("X-Plex-Product", "Sonarr");
|
||||||
request.AddHeader("X-Plex-Version", "0");
|
request.AddHeader("X-Plex-Version", BuildInfo.Version.ToString());
|
||||||
|
|
||||||
return request;
|
return request;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue