From 1a8c78bad788cb3f1a41e110a11a0e1187927fa7 Mon Sep 17 00:00:00 2001 From: Ruud Date: Wed, 1 Mar 2017 10:15:35 +0100 Subject: [PATCH] Add Plex device name --- couchpotato/core/notifications/plex/server.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/couchpotato/core/notifications/plex/server.py b/couchpotato/core/notifications/plex/server.py index 956c66c..9c8df76 100644 --- a/couchpotato/core/notifications/plex/server.py +++ b/couchpotato/core/notifications/plex/server.py @@ -51,7 +51,8 @@ class PlexServer(object): req = urllib2.Request("https://plex.tv/users/sign_in.xml", data="") authheader = "Basic %s" % base64.encodestring('%s:%s' % (username, password))[:-1] req.add_header("Authorization", authheader) - req.add_header("X-Plex-Product", "Couchpotato Notifier") + req.add_header("X-Plex-Device-Name", "CouchPotato") + req.add_header("X-Plex-Product", "CouchPotato Notifier") req.add_header("X-Plex-Client-Identifier", "b3a6b24dcab2224bdb101fc6aa08ea5e2f3147d6") req.add_header("X-Plex-Version", "1.0")