mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-06 21:21:15 -07:00
Add Tautulli to X-Plex-Device-Name header
This commit is contained in:
parent
50d90d16bf
commit
eb1d724417
2 changed files with 3 additions and 2 deletions
|
@ -619,7 +619,7 @@ function getPlexHeaders(clientID) {
|
||||||
'X-Plex-Platform-Version': p.version,
|
'X-Plex-Platform-Version': p.version,
|
||||||
'X-Plex-Model': 'Plex OAuth',
|
'X-Plex-Model': 'Plex OAuth',
|
||||||
'X-Plex-Device': p.os,
|
'X-Plex-Device': p.os,
|
||||||
'X-Plex-Device-Name': p.name,
|
'X-Plex-Device-Name': p.name + ' (Tautulli)',
|
||||||
'X-Plex-Device-Screen-Resolution': window.screen.width + 'x' + window.screen.height,
|
'X-Plex-Device-Screen-Resolution': window.screen.width + 'x' + window.screen.height,
|
||||||
'X-Plex-Language': 'en'
|
'X-Plex-Language': 'en'
|
||||||
};
|
};
|
||||||
|
|
|
@ -60,7 +60,8 @@ class HTTPHandler(object):
|
||||||
'X-Plex-Platform-Version': plexpy.common.PLATFORM_RELEASE,
|
'X-Plex-Platform-Version': plexpy.common.PLATFORM_RELEASE,
|
||||||
'X-Plex-Device': '{} {}'.format(plexpy.common.PLATFORM,
|
'X-Plex-Device': '{} {}'.format(plexpy.common.PLATFORM,
|
||||||
plexpy.common.PLATFORM_RELEASE),
|
plexpy.common.PLATFORM_RELEASE),
|
||||||
'X-Plex-Device-Name': plexpy.common.PLATFORM_DEVICE_NAME
|
'X-Plex-Device-Name': '{} ({})'.format(plexpy.common.PLATFORM_DEVICE_NAME,
|
||||||
|
plexpy.common.PRODUCT)
|
||||||
}
|
}
|
||||||
|
|
||||||
self.token = token
|
self.token = token
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue