1
0
Fork 0
mirror of https://gitlab.com/dstftw/youtube-dl.git synced 2020-11-16 09:42:26 +00:00

[afreecatv] Pass referrer to video info request (closes #15507)

This commit is contained in:
Sergey M․ 2018-02-06 22:21:10 +07:00
parent 0e0508c8a2
commit fde677fed4
No known key found for this signature in database
GPG key ID: 2C393E0F18A9236D

View file

@ -177,7 +177,9 @@ class AfreecaTVIE(InfoExtractor):
video_xml = self._download_xml( video_xml = self._download_xml(
'http://afbbs.afreecatv.com:8080/api/video/get_video_info.php', '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, 'nTitleNo': video_id,
'partialView': 'SKIP_ADULT', 'partialView': 'SKIP_ADULT',
}) })