Skip to content

Commit

Permalink
Merge pull request ytdl-org#61 from merval/merval/comcast_sso_fix
Browse files Browse the repository at this point in the history
Added Comcast_SSO fix
  • Loading branch information
blackjack4494 authored Oct 31, 2020
2 parents 4f51913 + 3086aa1 commit 200959e
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions youtube_dlc/extractor/adobepass.py
Original file line number Diff line number Diff line change
Expand Up @@ -1438,6 +1438,13 @@ def extract_redirect_url(html, url=None, fatal=False):
provider_redirect_page, 'oauth redirect')
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://oauth.xfinity.com/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:
provider_login_page_res = provider_redirect_page_res
Expand Down

0 comments on commit 200959e

Please sign in to comment.