1
0
Fork 0
mirror of https://github.com/ytdl-org/youtube-dl.git synced 2024-11-22 10:11:52 +00:00

[afreecatv] Update referrer (closes #15947)

This commit is contained in:
Sergey M․ 2018-03-24 14:21:08 +07:00
parent b015cb1af3
commit 86e1958944
No known key found for this signature in database
GPG key ID: 2C393E0F18A9236D

View file

@ -187,11 +187,11 @@ class AfreecaTVIE(InfoExtractor):
r'nBbsNo\s*=\s*(\d+)', webpage, 'bbs') r'nBbsNo\s*=\s*(\d+)', webpage, 'bbs')
video_id = self._search_regex( video_id = self._search_regex(
r'nTitleNo\s*=\s*(\d+)', webpage, 'title', default=video_id) r'nTitleNo\s*=\s*(\d+)', webpage, 'title', default=video_id)
print(video_id, station_id, bbs_id)
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, headers={ video_id, headers={
'Referer': 'http://vod.afreecatv.com/embed.php', 'Referer': url,
}, query={ }, query={
'nTitleNo': video_id, 'nTitleNo': video_id,
'nStationNo': station_id, 'nStationNo': station_id,