From 190717e31fb236318834f8ed0fd27c7907205683 Mon Sep 17 00:00:00 2001 From: Philipp Hagemeister Date: Sun, 23 Jun 2013 22:52:43 +0200 Subject: [PATCH] [justin.tv] Clarify variable content --- youtube_dl/extractor/justintv.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/youtube_dl/extractor/justintv.py b/youtube_dl/extractor/justintv.py index 9c46baed56..b2006e3349 100644 --- a/youtube_dl/extractor/justintv.py +++ b/youtube_dl/extractor/justintv.py @@ -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)