diff options
author | ping <ping@users.noreply.github.com> | 2021-01-29 16:02:18 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-29 08:02:18 +0000 |
commit | 56a7ee903360fe89cb5372805473b508153fb856 (patch) | |
tree | 9c4fc734577b5f521b4073f123423370f6b7758a /youtube_dl/extractor/vlive.py | |
parent | 0b4f03a56394dee070f6e1723af8ce3a9ce44bfb (diff) |
[vlive] Fix error message decoding for python 2 (#28004)
Diffstat (limited to 'youtube_dl/extractor/vlive.py')
-rw-r--r-- | youtube_dl/extractor/vlive.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube_dl/extractor/vlive.py b/youtube_dl/extractor/vlive.py index 6224e6200..e2f5d81b8 100644 --- a/youtube_dl/extractor/vlive.py +++ b/youtube_dl/extractor/vlive.py @@ -116,7 +116,7 @@ class VLiveIE(VLiveBaseIE): headers={'Referer': 'https://www.vlive.tv/'}, query=query) except ExtractorError as e: if isinstance(e.cause, compat_HTTPError) and e.cause.code == 403: - self.raise_login_required(json.loads(e.cause.read().decode())['message']) + self.raise_login_required(json.loads(e.cause.read().decode('utf-8'))['message']) raise def _real_extract(self, url): |