File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 55import urllib .parse
66import uuid
77
8- __version__ = '0.0.3 '
8+ __version__ = '0.0.5 '
99
1010CODES_URL = 'https://plex.tv/api/v2/pins.json?strong=true'
1111AUTH_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 :
Original file line number Diff line number Diff line change 33with open ('README.md' ) as f :
44 long_description = f .read ()
55
6- VERSION = "0.0.3 "
6+ VERSION = "0.0.5 "
77
88setup (
99 name = 'plexauth' ,
You can’t perform that action at this time.
0 commit comments