projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0e0508c
)
[afreecatv] Pass referrer to video info request (closes #15507)
author
Sergey M․
<dstftw@gmail.com>
Tue, 6 Feb 2018 15:21:10 +0000
(22:21 +0700)
committer
Sergey M․
<dstftw@gmail.com>
Tue, 6 Feb 2018 15:21:10 +0000
(22:21 +0700)
youtube_dl/extractor/afreecatv.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/afreecatv.py
b/youtube_dl/extractor/afreecatv.py
index 513dd81df5cd8c044eaba800facdf76cca3cc509..d8376a1b33c3d46abae0e0a71234bc0aa54e038a 100644
(file)
--- a/
youtube_dl/extractor/afreecatv.py
+++ b/
youtube_dl/extractor/afreecatv.py
@@
-177,7
+177,9
@@
class AfreecaTVIE(InfoExtractor):
video_xml = self._download_xml(
'http://afbbs.afreecatv.com:8080/api/video/get_video_info.php',
- video_id, query={
+ video_id, headers={
+ 'Referer': 'http://vod.afreecatv.com/embed.php',
+ }, query={
'nTitleNo': video_id,
'partialView': 'SKIP_ADULT',
})