about summary refs log tree commit diff
path: root/youtube_dl/extractor/afreecatv.py
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2018-03-24 14:21:08 +0700
committerSergey M․ <dstftw@gmail.com>2018-03-24 14:21:08 +0700
commit86e1958944952afbe208101802c90f9a096adea9 (patch)
treeb67b1bd6ed84ae989007a5ccb751a661100bff44 /youtube_dl/extractor/afreecatv.py
parentb015cb1af3453c6f27c1b8ebd1916c1fc4f94923 (diff)
downloadyoutube-dl-86e1958944952afbe208101802c90f9a096adea9.tar.gz
youtube-dl-86e1958944952afbe208101802c90f9a096adea9.tar.xz
youtube-dl-86e1958944952afbe208101802c90f9a096adea9.zip
[afreecatv] Update referrer (closes #15947)
Diffstat (limited to 'youtube_dl/extractor/afreecatv.py')
-rw-r--r--youtube_dl/extractor/afreecatv.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/youtube_dl/extractor/afreecatv.py b/youtube_dl/extractor/afreecatv.py
index df2a3fc4a..0f4535804 100644
--- a/youtube_dl/extractor/afreecatv.py
+++ b/youtube_dl/extractor/afreecatv.py
@@ -187,11 +187,11 @@ class AfreecaTVIE(InfoExtractor):
             r'nBbsNo\s*=\s*(\d+)', webpage, 'bbs')
         video_id = self._search_regex(
             r'nTitleNo\s*=\s*(\d+)', webpage, 'title', default=video_id)
-
+        print(video_id, station_id, bbs_id)
         video_xml = self._download_xml(
             'http://afbbs.afreecatv.com:8080/api/video/get_video_info.php',
             video_id, headers={
-                'Referer': 'http://vod.afreecatv.com/embed.php',
+                'Referer': url,
             }, query={
                 'nTitleNo': video_id,
                 'nStationNo': station_id,