diff options
author | Remita Amine <remitamine@gmail.com> | 2019-05-12 10:23:36 +0100 |
---|---|---|
committer | Remita Amine <remitamine@gmail.com> | 2019-05-12 10:23:36 +0100 |
commit | b7df8f90a7d749ce609e7ff344464db73329117a (patch) | |
tree | db0ea3284b81fa0bb4af1912cb536c164ce1813d /youtube_dl/extractor/yahoo.py | |
parent | 8ae32e18828fbc7b1ee23e7d1af6ba546dd183b3 (diff) |
[yahoo:gyao] add X-User-Agent header to dam proxy requests(closes #21071)
Diffstat (limited to 'youtube_dl/extractor/yahoo.py')
-rw-r--r-- | youtube_dl/extractor/yahoo.py | 2 |
1 files changed, 2 insertions, 0 deletions
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', |