[yahoo:gyao] add X-User-Agent header to dam proxy requests(closes #21071)
authorRemita Amine <remitamine@gmail.com>
Sun, 12 May 2019 09:23:36 +0000 (10:23 +0100)
committerRemita Amine <remitamine@gmail.com>
Sun, 12 May 2019 09:23:36 +0000 (10:23 +0100)
youtube_dl/extractor/yahoo.py

index 6576c1d6907707b4a1c44703c057befd9ac7b5b1..a3b5f00c8696e6e45af3678a8bbe6f611a21af2a 100644 (file)
@@ -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',