浏览代码

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

Sergey M․ 9 年之前
父节点
当前提交
d41ee7b774
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      youtube_dl/extractor/vlive.py

+ 1 - 1
youtube_dl/extractor/vlive.py

@@ -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')