Always use the current Kodi language when communicating with the PMS
This commit is contained in:
parent
2481606cd7
commit
0a06a6ad78
1 changed files with 3 additions and 1 deletions
|
@ -3,6 +3,8 @@
|
||||||
from __future__ import absolute_import, division, unicode_literals
|
from __future__ import absolute_import, division, unicode_literals
|
||||||
from logging import getLogger
|
from logging import getLogger
|
||||||
|
|
||||||
|
import xbmc
|
||||||
|
|
||||||
from . import utils
|
from . import utils
|
||||||
from . import variables as v
|
from . import variables as v
|
||||||
|
|
||||||
|
@ -31,7 +33,7 @@ def getXArgsDeviceInfo(options=None, include_token=True):
|
||||||
'Connection': 'keep-alive',
|
'Connection': 'keep-alive',
|
||||||
"Content-Type": "application/x-www-form-urlencoded",
|
"Content-Type": "application/x-www-form-urlencoded",
|
||||||
# "Access-Control-Allow-Origin": "*",
|
# "Access-Control-Allow-Origin": "*",
|
||||||
# 'X-Plex-Language': 'en',
|
'Accept-Language': xbmc.getLanguage(xbmc.ISO_639_1),
|
||||||
'X-Plex-Device': v.DEVICE,
|
'X-Plex-Device': v.DEVICE,
|
||||||
'X-Plex-Model': v.MODEL,
|
'X-Plex-Model': v.MODEL,
|
||||||
'X-Plex-Device-Name': v.DEVICENAME,
|
'X-Plex-Device-Name': v.DEVICENAME,
|
||||||
|
|
Loading…
Reference in a new issue