1
0
mirror of https://codeberg.org/polarisfm/youtube-dl synced 2024-11-26 02:14:32 +01:00

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

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