Comcast_SSO another way how Comcast can autologin users

Fixes #11257
This commit is contained in:
Denis Gladkikh 2016-11-21 07:54:39 -08:00
parent 2574721a81
commit cc1e88aa5d
1 changed files with 8 additions and 0 deletions

View File

@ -1382,6 +1382,14 @@ class AdobePassIE(InfoExtractor):
# Just need to process the request. No useful data comes back
self._download_webpage(
oauth_redirect_url, video_id, 'Confirming auto login')
elif 'automatically signed in with' in provider_redirect_page:
# Seems like comcast is rolling up new way of automatically signing customers
oauth_redirect_url = self._html_search_regex(
r'continue:\s*"(https://login.comcast.net/oauth/authorize\?.+)"',
provider_redirect_page, 'oauth redirect (signed)')
# Just need to process the request. No useful data comes back
self._download_webpage(
oauth_redirect_url, video_id, 'Confirming auto login')
else:
if '<form name="signin"' in provider_redirect_page:
# already have the form, just fill it