aboutsummaryrefslogtreecommitdiffstats
path: root/youtube_dl/extractor/discovery.py
diff options
context:
space:
mode:
authorAakash Gajjar <skyqutip@gmail.com>2020-08-26 20:22:32 +0530
committerGitHub <noreply@github.com>2020-08-26 20:22:32 +0530
commit19a107f21c7544b5e49a58040d09d9465f6858b1 (patch)
tree8325ffd206d9da1ce53f24b9ab4690abe175144d /youtube_dl/extractor/discovery.py
parent7f7edf837c1af059f64a4968b942a83f86cf6206 (diff)
downloadhypervideo-pre-19a107f21c7544b5e49a58040d09d9465f6858b1.tar.lz
hypervideo-pre-19a107f21c7544b5e49a58040d09d9465f6858b1.tar.xz
hypervideo-pre-19a107f21c7544b5e49a58040d09d9465f6858b1.zip
Revert "pull changes from remote master (#190)" (#193)
This reverts commit b827ee921fe510a8730a9fab070148ed2b8279b5.
Diffstat (limited to 'youtube_dl/extractor/discovery.py')
-rw-r--r--youtube_dl/extractor/discovery.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/youtube_dl/extractor/discovery.py b/youtube_dl/extractor/discovery.py
index e0139cc86..6a2712cc5 100644
--- a/youtube_dl/extractor/discovery.py
+++ b/youtube_dl/extractor/discovery.py
@@ -13,8 +13,8 @@ from ..compat import compat_HTTPError
class DiscoveryIE(DiscoveryGoBaseIE):
_VALID_URL = r'''(?x)https?://
(?P<site>
- go\.discovery|
- www\.
+ (?:(?:www|go)\.)?discovery|
+ (?:www\.)?
(?:
investigationdiscovery|
discoverylife|
@@ -22,7 +22,8 @@ class DiscoveryIE(DiscoveryGoBaseIE):
ahctv|
destinationamerica|
sciencechannel|
- tlc
+ tlc|
+ velocity
)|
watch\.
(?:
@@ -82,7 +83,7 @@ class DiscoveryIE(DiscoveryGoBaseIE):
'authRel': 'authorization',
'client_id': '3020a40c2356a645b4b4',
'nonce': ''.join([random.choice(string.ascii_letters) for _ in range(32)]),
- 'redirectUri': 'https://www.discovery.com/',
+ 'redirectUri': 'https://fusion.ddmcdn.com/app/mercury-sdk/180/redirectHandler.html?https://www.%s.com' % site,
})['access_token']
headers = self.geo_verification_headers()