-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -272,10 +272,9 @@ def _gp_auth(self, username, password, gigya_data=False): | |
'uuid' : gigya_data['UID'], | ||
'signature' : gigya_data['UIDSignature'], | ||
'ts' : gigya_data['signatureTimestamp'], | ||
'errorCode' : '0', | ||
'device_type' : 'web', | ||
'username' : username, | ||
'password' : password, | ||
'grant_type' : 'password' | ||
'grant_type' : 'shield_authentication' | ||
} | ||
|
||
try: | ||
|
@@ -327,13 +326,13 @@ def login(self, username, password, force=False): | |
to determine if access has been granted. | ||
""" | ||
# if the user already has access, just skip the entire auth process | ||
if not force: | ||
if self.check_for_subscription(): | ||
self.logger.debug('No need to login; the user already has access.') | ||
return True | ||
#if not force: | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
tommmlij
Owner
|
||
# if self.check_for_subscription(): | ||
# self.logger.debug('No need to login; the user already has access.') | ||
# return True | ||
|
||
|
||
for auth in [self._gp_auth, self._gigya_auth]: | ||
for auth in [self._gigya_auth]: | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
tommmlij
Owner
|
||
self.logger.debug('Trying {0} authentication.'.format(auth.__name__)) | ||
try: | ||
data = auth(username, password) | ||
|
@@ -954,7 +953,7 @@ def _get_diva_streams(self, video_id, diva_config_url): | |
} | ||
for vs in akamai_xml.iter('videoSource'): | ||
try: | ||
vs_format = vs.attrib['format'].lower() | ||
vs_format = vs.attrib['name'].lower() | ||
vs_url = vs.find('uri').text | ||
except (KeyError, AttributeError): | ||
continue | ||
|
2 comments
on commit f3cb73a
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this work for you if you undo the changes that I marked as "needed?"
Gigya is not rolled out uniformly across regions (annoying as hell), so I can't test this.
The grant type change is interesting to me, as "password" did work for me, back when i was covered by Gigya, but I know Plex uses the shield_authentication.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I answered in the individual comments...
Regarding pw vs. shield, I have no opinion, just did what was done in the request in Chrome ;)
Needed?