projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8ae32e1
)
[yahoo:gyao] add X-User-Agent header to dam proxy requests(closes #21071)
author
Remita Amine
<remitamine@gmail.com>
Sun, 12 May 2019 09:23:36 +0000
(10:23 +0100)
committer
Remita Amine
<remitamine@gmail.com>
Sun, 12 May 2019 09:23:36 +0000
(10:23 +0100)
youtube_dl/extractor/yahoo.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/yahoo.py
b/youtube_dl/extractor/yahoo.py
index 6576c1d6907707b4a1c44703c057befd9ac7b5b1..a3b5f00c8696e6e45af3678a8bbe6f611a21af2a 100644
(file)
--- 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',