aboutsummaryrefslogtreecommitdiffstats
path: root/youtube_dl/extractor/vlive.py
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2016-04-30 19:22:42 +0600
committerSergey M․ <dstftw@gmail.com>2016-04-30 19:22:42 +0600
commitd41ee7b7745d59d398f37b435146d4036e4a7448 (patch)
tree4d9cfcab1c0ec47626c5f2416ee71684be0f574d /youtube_dl/extractor/vlive.py
parente0e9bbb0e9dd92f526b04584c47e6509a73fed04 (diff)
downloadyoutube-dl-d41ee7b7745d59d398f37b435146d4036e4a7448.zip
youtube-dl-d41ee7b7745d59d398f37b435146d4036e4a7448.tar.gz
youtube-dl-d41ee7b7745d59d398f37b435146d4036e4a7448.tar.bz2
[vlive] Pass Referer as bytestring (Closes #9352)
Diffstat (limited to 'youtube_dl/extractor/vlive.py')
-rw-r--r--youtube_dl/extractor/vlive.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube_dl/extractor/vlive.py b/youtube_dl/extractor/vlive.py
index 7f9e99e..a672ea9 100644
--- a/youtube_dl/extractor/vlive.py
+++ b/youtube_dl/extractor/vlive.py
@@ -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')