Skip to content

Commit 12fd4a5

Browse files
committed
Make client_identifier public
1 parent 98f7f8f commit 12fd4a5

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

plexauth.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
import urllib.parse
66
import uuid
77

8-
__version__ = '0.0.3'
8+
__version__ = '0.0.5'
99

1010
CODES_URL = 'https://plex.tv/api/v2/pins.json?strong=true'
1111
AUTH_URL = 'https://app.plex.tv/auth#!?{}'
@@ -15,11 +15,11 @@ class PlexAuth():
1515

1616
def __init__(self, payload, session=None):
1717
'''Create PlexAuth instance.'''
18-
self._client_identifier = str(uuid.uuid4())
18+
self.client_identifier = str(uuid.uuid4())
1919
self._code = None
2020
self._identifier = None
2121
self._payload = payload
22-
self._payload['X-Plex-Client-Identifier'] = self._client_identifier
22+
self._payload['X-Plex-Client-Identifier'] = self.client_identifier
2323

2424
self._local_session = False
2525
self._session = session
@@ -37,7 +37,7 @@ async def initiate_auth(self):
3737
def auth_url(self, forward_url=None):
3838
'''Return an auth URL for the user to follow.'''
3939
parameters = {
40-
'clientID': self._client_identifier,
40+
'clientID': self.client_identifier,
4141
'code': self._code,
4242
}
4343
if forward_url:

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
with open('README.md') as f:
44
long_description = f.read()
55

6-
VERSION="0.0.3"
6+
VERSION="0.0.5"
77

88
setup(
99
name='plexauth',

0 commit comments

Comments
 (0)