From da145ccc36cd7a46ec032e239345144ebe7e4920 Mon Sep 17 00:00:00 2001 From: Remita Amine Date: Mon, 31 May 2021 23:28:11 +0200 Subject: [PATCH] [redbulltv] fix embed data extraction(closes #28770) --- haruhi_dl/extractor/redbulltv.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/haruhi_dl/extractor/redbulltv.py b/haruhi_dl/extractor/redbulltv.py index 3aae79f5d..6d000b372 100644 --- a/haruhi_dl/extractor/redbulltv.py +++ b/haruhi_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