Browse Source

[yahoo:gyao] add X-User-Agent header to dam proxy requests(closes #21071)

master
Remita Amine 6 years ago
parent
commit
b7df8f90a7
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      youtube_dl/extractor/yahoo.py

+ 2
- 0
youtube_dl/extractor/yahoo.py View 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',


Loading…
Cancel
Save