aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilipp Hagemeister <phihag@phihag.de>2013-06-23 22:52:43 +0200
committerPhilipp Hagemeister <phihag@phihag.de>2013-06-23 22:52:43 +0200
commit190717e31fb236318834f8ed0fd27c7907205683 (patch)
tree21c298c72613e3cf7b05c7665bd0af69102c1e1f
parent0824c28c8bb8390cd750c3bf95c6307c8462dcc1 (diff)
[justin.tv] Clarify variable content
-rw-r--r--youtube_dl/extractor/justintv.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/youtube_dl/extractor/justintv.py b/youtube_dl/extractor/justintv.py
index 9c46baed5..b2006e334 100644
--- a/youtube_dl/extractor/justintv.py
+++ b/youtube_dl/extractor/justintv.py
@@ -34,11 +34,11 @@ class JustinTVIE(InfoExtractor):
# 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)