From 0a06a6ad7881a39a687bc51caf53b1eb44be591b Mon Sep 17 00:00:00 2001 From: croneter Date: Thu, 31 Oct 2019 13:01:08 +0100 Subject: [PATCH] Always use the current Kodi language when communicating with the PMS --- resources/lib/clientinfo.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/resources/lib/clientinfo.py b/resources/lib/clientinfo.py index 54378598..48df4554 100644 --- a/resources/lib/clientinfo.py +++ b/resources/lib/clientinfo.py @@ -3,6 +3,8 @@ from __future__ import absolute_import, division, unicode_literals from logging import getLogger +import xbmc + from . import utils from . import variables as v @@ -31,7 +33,7 @@ def getXArgsDeviceInfo(options=None, include_token=True): 'Connection': 'keep-alive', "Content-Type": "application/x-www-form-urlencoded", # "Access-Control-Allow-Origin": "*", - # 'X-Plex-Language': 'en', + 'Accept-Language': xbmc.getLanguage(xbmc.ISO_639_1), 'X-Plex-Device': v.DEVICE, 'X-Plex-Model': v.MODEL, 'X-Plex-Device-Name': v.DEVICENAME,