summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorRemita Amine <[email protected]>2021-05-17 12:56:49 +0100
committerRemita Amine <[email protected]>2021-05-17 12:56:49 +0100
commitdfbbe2902fc67f0f93ee47a8077c148055c67a9b (patch)
tree8f9fad01da1dae0cbcf052edf92ce8a85df3eee8
parente1a9d0ef780b7a0cdcdc706909ad2de9bd06138c (diff)
downloadyoutube-dl-dfbbe2902fc67f0f93ee47a8077c148055c67a9b.tar.gz
youtube-dl-dfbbe2902fc67f0f93ee47a8077c148055c67a9b.zip
[redbulltv] fix embed data extraction(closes #28770)
-rw-r--r--youtube_dl/extractor/redbulltv.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/youtube_dl/extractor/redbulltv.py b/youtube_dl/extractor/redbulltv.py
index 3aae79f5d..6d000b372 100644
--- a/youtube_dl/extractor/redbulltv.py
+++ b/youtube_dl/extractor/redbulltv.py
@@ -133,8 +133,10 @@ class RedBullEmbedIE(RedBullTVIE):
rrn_id = self._match_id(url)
asset_id = self._download_json(
'https://edge-graphql.crepo-production.redbullaws.com/v1/graphql',
- rrn_id, headers={'API-KEY': 'e90a1ff11335423998b100c929ecc866'},
- query={
+ rrn_id, headers={
+ 'Accept': 'application/json',
+ 'API-KEY': 'e90a1ff11335423998b100c929ecc866',
+ }, query={
'query': '''{
resource(id: "%s", enforceGeoBlocking: false) {
%s