瀏覽代碼

[redbulltv] fix embed data extraction(closes #28770)

Remita Amine 4 年之前
父節點
當前提交
dfbbe2902f
共有 1 個文件被更改,包括 4 次插入2 次删除
  1. 4 2
      youtube_dl/extractor/redbulltv.py

+ 4 - 2
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