Set different client ID when fetching a new Plex token

This commit is contained in:
JonnyWong16 2021-10-11 21:24:58 -07:00
parent ef8557b50a
commit e34e775f41
No known key found for this signature in database
GPG key ID: B1F1F9807184697A
6 changed files with 16 additions and 14 deletions

View file

@ -55,7 +55,7 @@ class HTTPHandler(object):
self.headers = {
'X-Plex-Product': plexpy.common.PRODUCT,
'X-Plex-Version': plexpy.common.RELEASE,
'X-Plex-Client-Identifier': plexpy.CONFIG.PMS_UUID,
'X-Plex-Client-Identifier': plexpy.CONFIG.PMS_CLIENT_ID or plexpy.CONFIG.PMS_UUID,
'X-Plex-Platform': plexpy.common.PLATFORM,
'X-Plex-Platform-Version': plexpy.common.PLATFORM_RELEASE,
'X-Plex-Device': '{} {}'.format(plexpy.common.PLATFORM,