[justin.tv] Clarify variable content

This commit is contained in:
Philipp Hagemeister 2013-06-23 22:52:43 +02:00
parent 0824c28c8b
commit 190717e31f

View file

@ -34,11 +34,11 @@ def report_download_page(self, channel, offset):
# Return count of items, list of *valid* items
def _parse_page(self, url, video_id):
webpage = self._download_webpage(url, video_id,
u'Downloading video info JSON',
u'unable to download video info JSON')
info_json = self._download_webpage(url, video_id,
u'Downloading video info JSON',
u'unable to download video info JSON')
response = json.loads(webpage)
response = json.loads(info_json)
if type(response) != list:
error_text = response.get('error', 'unknown error')
raise ExtractorError(u'Justin.tv API: %s' % error_text)