Browse Source

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

master-ytdl-org
Sergey M․ 7 years ago
parent
commit
fde677fed4
No known key found for this signature in database GPG Key ID: 2C393E0F18A9236D
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      youtube_dl/extractor/afreecatv.py

+ 3
- 1
youtube_dl/extractor/afreecatv.py View 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',
})


Loading…
Cancel
Save