]> git.bitcoin.ninja Git - youtube-dl/commitdiff
[vlive] Pass Referer as bytestring (Closes #9352)
authorSergey M․ <dstftw@gmail.com>
Sat, 30 Apr 2016 13:22:42 +0000 (19:22 +0600)
committerSergey M․ <dstftw@gmail.com>
Sat, 30 Apr 2016 13:22:42 +0000 (19:22 +0600)
youtube_dl/extractor/vlive.py

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