Skip to content

Commit

Permalink
[discovery] fix anonymous token extraction(closes #23650)
Browse files Browse the repository at this point in the history
  • Loading branch information
remitamine committed Jan 6, 2020
1 parent 0d2306d commit 2f7aa68
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions youtube_dl/extractor/discovery.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,16 @@
class DiscoveryIE(DiscoveryGoBaseIE):
_VALID_URL = r'''(?x)https?://
(?P<site>
(?:(?:www|go)\.)?discovery|
(?:www\.)?
go\.discovery|
www\.
(?:
investigationdiscovery|
discoverylife|
animalplanet|
ahctv|
destinationamerica|
sciencechannel|
tlc|
velocity
tlc
)|
watch\.
(?:
Expand Down Expand Up @@ -83,7 +82,7 @@ def _real_extract(self, url):
'authRel': 'authorization',
'client_id': '3020a40c2356a645b4b4',
'nonce': ''.join([random.choice(string.ascii_letters) for _ in range(32)]),
'redirectUri': 'https://fusion.ddmcdn.com/app/mercury-sdk/180/redirectHandler.html?https://www.%s.com' % site,
'redirectUri': 'https://www.discovery.com/',
})['access_token']

headers = self.geo_verification_headers()
Expand Down

0 comments on commit 2f7aa68

Please sign in to comment.