commit: b7df8f90a7d749ce609e7ff344464db73329117a
parent 8ae32e18828fbc7b1ee23e7d1af6ba546dd183b3
Author: Remita Amine <remitamine@gmail.com>
Date: Sun, 12 May 2019 10:23:36 +0100
[yahoo:gyao] add X-User-Agent header to dam proxy requests(closes #21071)
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git 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',