From: Sergey M․ Date: Tue, 6 Feb 2018 15:21:10 +0000 (+0700) Subject: [afreecatv] Pass referrer to video info request (closes #15507) X-Git-Url: http://git.bitcoin.ninja/?a=commitdiff_plain;h=fde677fed4eb04a493abed333e437bb43786f952;p=youtube-dl [afreecatv] Pass referrer to video info request (closes #15507) --- 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', })