Don't generate clientId twice
We already generate and store the client ID in self.client_id, so no need to re-generate it in refresh_validate().
This commit is contained in:
parent
d2bbf7dee5
commit
5e41650d50
1 changed files with 1 additions and 2 deletions
|
@ -92,10 +92,9 @@ class PyiCloudService(object):
|
||||||
)
|
)
|
||||||
self.params.update({'id': sha.hexdigest().upper()})
|
self.params.update({'id': sha.hexdigest().upper()})
|
||||||
|
|
||||||
clientId = str(uuid.uuid1()).upper()
|
|
||||||
self.params.update({
|
self.params.update({
|
||||||
'clientBuildNumber': '14E45',
|
'clientBuildNumber': '14E45',
|
||||||
'clientId': clientId,
|
'clientId': self.client_id,
|
||||||
})
|
})
|
||||||
|
|
||||||
def authenticate(self):
|
def authenticate(self):
|
||||||
|
|
Loading…
Reference in a new issue