diff options
author | ping <lipng.ong@gmail.com> | 2015-08-31 12:46:28 +0800 |
---|---|---|
committer | ping <lipng.ong@gmail.com> | 2015-08-31 12:46:28 +0800 |
commit | 615f155a3afd5c854fbf855c02f17ddb7f217b05 (patch) | |
tree | eee7e8a5c3ea5e6f97434017eccdcb2a1cf67587 /youtube_dl/extractor/vlive.py | |
parent | eba470f2f22389ab32164e4eb39067ceecf900f5 (diff) |
[vlive] Fixes for review
Diffstat (limited to 'youtube_dl/extractor/vlive.py')
-rw-r--r-- | youtube_dl/extractor/vlive.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/youtube_dl/extractor/vlive.py b/youtube_dl/extractor/vlive.py index 6a403cc64..17ae3b964 100644 --- a/youtube_dl/extractor/vlive.py +++ b/youtube_dl/extractor/vlive.py @@ -39,7 +39,7 @@ class VLiveIE(InfoExtractor): title = self._og_search_title(webpage) thumbnail = self._og_search_thumbnail(webpage) creator = self._html_search_regex( - r'<span class="name">([^<>]+)</span>', webpage, 'creator') + r'<span[^>]+class="name">([^<>]+)</span>', webpage, 'creator') url = 'http://global.apis.naver.com/globalV/globalV/vod/%s/playinfo?' % video_id msgpad = '%.0f' % (time() * 1000) @@ -51,7 +51,7 @@ class VLiveIE(InfoExtractor): playinfo = self._download_json(url, video_id, 'Downloading video json') if playinfo.get('message', '') != 'success': - raise ExtractorError(playinfo['message']) + raise ExtractorError(playinfo.get('message', 'JSON request unsuccessful')) if not playinfo.get('result'): raise ExtractorError('No videos found.') |