aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor/afreecatv.py
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2018-02-06 22:21:10 +0700
committerSergey M․ <dstftw@gmail.com>2018-02-06 22:21:10 +0700
commitfde677fed4eb04a493abed333e437bb43786f952 (patch)
tree02641815ca041cf3a9236f24a7daf717c7169fb0 /youtube_dl/extractor/afreecatv.py
parent0e0508c8a24f5882fefea37e91ac03921fb967e9 (diff)
[afreecatv] Pass referrer to video info request (closes #15507)
Diffstat (limited to 'youtube_dl/extractor/afreecatv.py')
-rw-r--r--youtube_dl/extractor/afreecatv.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/youtube_dl/extractor/afreecatv.py b/youtube_dl/extractor/afreecatv.py
index 513dd81df..d8376a1b3 100644
--- 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',
})