From 8cd5b0b77510d857a1d3c6aa74ce8d3df2fcaa1b Mon Sep 17 00:00:00 2001 From: JonnyWong16 <9099342+JonnyWong16@users.noreply.github.com> Date: Wed, 21 Dec 2022 17:25:40 -0800 Subject: [PATCH] Use system language for requests --- plexpy/http_handler.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plexpy/http_handler.py b/plexpy/http_handler.py index 974b9ce4..87c4cff5 100644 --- a/plexpy/http_handler.py +++ b/plexpy/http_handler.py @@ -61,7 +61,8 @@ class HTTPHandler(object): 'X-Plex-Device': '{} {}'.format(plexpy.common.PLATFORM, plexpy.common.PLATFORM_RELEASE), 'X-Plex-Device-Name': '{} ({})'.format(plexpy.common.PLATFORM_DEVICE_NAME, - plexpy.common.PRODUCT) + plexpy.common.PRODUCT), + 'Accept-Language': plexpy.SYS_LANGUAGE } self.token = token