projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
0824c28
)
[justin.tv] Clarify variable content
author
Philipp Hagemeister
<phihag@phihag.de>
Sun, 23 Jun 2013 20:52:43 +0000
(22:52 +0200)
committer
Philipp Hagemeister
<phihag@phihag.de>
Sun, 23 Jun 2013 20:52:43 +0000
(22:52 +0200)
youtube_dl/extractor/justintv.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/justintv.py
b/youtube_dl/extractor/justintv.py
index 9c46baed56d27fbb6229db266ea6bc64555254b0..b2006e33499a31096d516b88e01c9f81f14392a6 100644
(file)
--- 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):
# 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)
if type(response) != list:
error_text = response.get('error', 'unknown error')
raise ExtractorError(u'Justin.tv API: %s' % error_text)