diff --git a/plexpy/common.py b/plexpy/common.py index 8f0ba9a0..8c5247af 100644 --- a/plexpy/common.py +++ b/plexpy/common.py @@ -23,6 +23,7 @@ PLATFORM = platform.system() PLATFORM_RELEASE = platform.release() PLATFORM_VERSION = platform.version() PLATFORM_LINUX_DISTRO = ' '.join(x for x in platform.linux_distribution() if x) +PLATFORM_DEVICE_NAME = platform.node() BRANCH = version.PLEXPY_BRANCH RELEASE = version.PLEXPY_RELEASE_VERSION diff --git a/plexpy/http_handler.py b/plexpy/http_handler.py index dff7ec4e..7563297e 100644 --- a/plexpy/http_handler.py +++ b/plexpy/http_handler.py @@ -39,12 +39,13 @@ class HTTPHandler(object): else: self.urls = urls - self.headers = {'X-Plex-Device-Name': 'Tautulli', - 'X-Plex-Product': 'Tautulli', + self.headers = {'X-Plex-Product': 'Tautulli', 'X-Plex-Version': plexpy.common.RELEASE, + 'X-Plex-Client-Identifier': plexpy.CONFIG.PMS_UUID, 'X-Plex-Platform': plexpy.common.PLATFORM, 'X-Plex-Platform-Version': plexpy.common.PLATFORM_RELEASE, - 'X-Plex-Client-Identifier': plexpy.CONFIG.PMS_UUID, + 'X-Plex-Device': 'Web', + 'X-Plex-Device-Name': plexpy.common.PLATFORM_DEVICE_NAME } self.token = token