Add missing HTTP headers that Plex for Window's Plex Companion uses
This commit is contained in:
parent
d8db463423
commit
4d3e36fbdb
1 changed files with 2 additions and 0 deletions
|
@ -42,6 +42,8 @@ def getXArgsDeviceInfo(options=None, include_token=True):
|
|||
'X-Plex-Version': v.ADDON_VERSION,
|
||||
'X-Plex-Client-Identifier': getDeviceId(),
|
||||
'X-Plex-Provides': 'client,controller,player,pubsub-player',
|
||||
'X-Plex-Protocol': '1.0',
|
||||
'Cache-Control': 'no-cache'
|
||||
}
|
||||
if include_token and utils.window('pms_token'):
|
||||
xargs['X-Plex-Token'] = utils.window('pms_token')
|
||||
|
|
Loading…
Reference in a new issue