projects
/
youtube-dl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[youtube] Fix extraction.
[youtube-dl]
/
youtube_dl
/
extractor
/
discovery.py
diff --git
a/youtube_dl/extractor/discovery.py
b/youtube_dl/extractor/discovery.py
index 6287ca6856248432d7ffeaf477cc5fb3c9af58d9..e0139cc862d74bc3c20a9d6567747b96b642c730 100644
(file)
--- 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>
class DiscoveryIE(DiscoveryGoBaseIE):
_VALID_URL = r'''(?x)https?://
(?P<site>
-
(?:(?:www|go)\.)?
discovery|
- (?:www\.)?
+
go\.
discovery|
+ www\.
(?:
investigationdiscovery|
discoverylife|
(?:
investigationdiscovery|
discoverylife|
@@
-22,8
+22,7
@@
class DiscoveryIE(DiscoveryGoBaseIE):
ahctv|
destinationamerica|
sciencechannel|
ahctv|
destinationamerica|
sciencechannel|
- tlc|
- velocity
+ tlc
)|
watch\.
(?:
)|
watch\.
(?:
@@
-83,7
+82,7
@@
class DiscoveryIE(DiscoveryGoBaseIE):
'authRel': 'authorization',
'client_id': '3020a40c2356a645b4b4',
'nonce': ''.join([random.choice(string.ascii_letters) for _ in range(32)]),
'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()
})['access_token']
headers = self.geo_verification_headers()
@@
-94,6
+93,8
@@
class DiscoveryIE(DiscoveryGoBaseIE):
self._API_BASE_URL + 'content/videos',
display_id, 'Downloading content JSON metadata',
headers=headers, query={
self._API_BASE_URL + 'content/videos',
display_id, 'Downloading content JSON metadata',
headers=headers, query={
+ 'embed': 'show.name',
+ 'fields': 'authenticated,description.detailed,duration,episodeNumber,id,name,parental.rating,season.number,show,tags',
'slug': display_id,
'show_slug': show_slug,
})[0]
'slug': display_id,
'show_slug': show_slug,
})[0]