1
0
Fork 0
mirror of https://github.com/ytdl-org/youtube-dl.git synced 2024-12-22 16:57:40 +00:00

[vlive] Pass Referer as bytestring (Closes #9352)

This commit is contained in:
Sergey M․ 2016-04-30 19:22:42 +06:00
parent e0e9bbb0e9
commit d41ee7b774
No known key found for this signature in database
GPG key ID: 2C393E0F18A9236D

View file

@ -43,7 +43,7 @@ class VLiveIE(InfoExtractor):
status_params = self._download_json( status_params = self._download_json(
'http://www.vlive.tv/video/status?videoSeq=%s' % video_id, 'http://www.vlive.tv/video/status?videoSeq=%s' % video_id,
video_id, 'Downloading JSON status', video_id, 'Downloading JSON status',
headers={'Referer': url}) headers={'Referer': url.encode('utf-8')})
status = status_params.get('status') status = status_params.get('status')
air_start = status_params.get('onAirStartAt', '') air_start = status_params.get('onAirStartAt', '')
is_live = status_params.get('isLive') is_live = status_params.get('isLive')