From: Remita Amine Date: Sun, 12 May 2019 09:23:36 +0000 (+0100) Subject: [yahoo:gyao] add X-User-Agent header to dam proxy requests(closes #21071) X-Git-Url: http://git.oshgnacknak.de/?a=commitdiff_plain;h=b7df8f90a7d749ce609e7ff344464db73329117a;p=youtube-dl [yahoo:gyao] add X-User-Agent header to dam proxy requests(closes #21071) --- 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',