mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2024-11-22 18:22:21 +00:00
[justin.tv] Clarify variable content
This commit is contained in:
parent
0824c28c8b
commit
190717e31f
1 changed files with 4 additions and 4 deletions
|
@ -34,11 +34,11 @@ class JustinTVIE(InfoExtractor):
|
||||||
|
|
||||||
# Return count of items, list of *valid* items
|
# Return count of items, list of *valid* items
|
||||||
def _parse_page(self, url, video_id):
|
def _parse_page(self, url, video_id):
|
||||||
webpage = self._download_webpage(url, video_id,
|
info_json = self._download_webpage(url, video_id,
|
||||||
u'Downloading video info JSON',
|
u'Downloading video info JSON',
|
||||||
u'unable to download video info JSON')
|
u'unable to download video info JSON')
|
||||||
|
|
||||||
response = json.loads(webpage)
|
response = json.loads(info_json)
|
||||||
if type(response) != list:
|
if type(response) != list:
|
||||||
error_text = response.get('error', 'unknown error')
|
error_text = response.get('error', 'unknown error')
|
||||||
raise ExtractorError(u'Justin.tv API: %s' % error_text)
|
raise ExtractorError(u'Justin.tv API: %s' % error_text)
|
||||||
|
|
Loading…
Reference in a new issue