[afreecatv] Pass referrer to video info request (closes #15507)
authorSergey M․ <dstftw@gmail.com>
Tue, 6 Feb 2018 15:21:10 +0000 (22:21 +0700)
committerSergey M․ <dstftw@gmail.com>
Tue, 6 Feb 2018 15:21:10 +0000 (22:21 +0700)
youtube_dl/extractor/afreecatv.py

index 513dd81df5cd8c044eaba800facdf76cca3cc509..d8376a1b33c3d46abae0e0a71234bc0aa54e038a 100644 (file)
@@ -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',
             })