From b7df8f90a7d749ce609e7ff344464db73329117a Mon Sep 17 00:00:00 2001 From: Remita Amine Date: Sun, 12 May 2019 10:23:36 +0100 Subject: [PATCH] [yahoo:gyao] add X-User-Agent header to dam proxy requests(closes #21071) --- youtube_dl/extractor/yahoo.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/youtube_dl/extractor/yahoo.py b/youtube_dl/extractor/yahoo.py index 6576c1d69..a3b5f00c8 100644 --- a/youtube_dl/extractor/yahoo.py +++ b/youtube_dl/extractor/yahoo.py @@ -511,6 +511,8 @@ class YahooGyaOPlayerIE(InfoExtractor): 'https://gyao.yahoo.co.jp/dam/v1/videos/' + video_id, video_id, query={ 'fields': 'longDescription,title,videoId', + }, headers={ + 'X-User-Agent': 'Unknown Pc GYAO!/2.0.0 Web', }) return { '_type': 'url_transparent', -- 2.39.5