aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilipp Hagemeister <phihag@phihag.de>2013-11-20 06:55:07 +0100
committerPhilipp Hagemeister <phihag@phihag.de>2013-11-20 06:55:07 +0100
commit15ff3c831e6dbd6b99c932561d342b96676a47f0 (patch)
tree34caf23f1ad97c68ab01b4623a2f2abab1988586
parent100959a6d9fee68d2876e112f4be260ade756c40 (diff)
[escapist] Fix syntax error
-rw-r--r--youtube_dl/extractor/escapist.py11
1 files changed, 5 insertions, 6 deletions
diff --git a/youtube_dl/extractor/escapist.py b/youtube_dl/extractor/escapist.py
index f9681fd43..03ebb7c48 100644
--- a/youtube_dl/extractor/escapist.py
+++ b/youtube_dl/extractor/escapist.py
@@ -66,13 +66,12 @@ class EscapistIE(InfoExtractor):
})
_add_format(u'normal', configUrl)
+ hq_url = (configUrl +
+ ('&hq=1' if '?' in configUrl else configUrl + '?hq=1'))
try:
- hq_url = (configUrl +
- ('&hq=1' if '?' in configUrl else configUrl + '?hq=1'))
- try:
- _add_format(u'hq', hq_url)
- except ExtractorError:
- pass # That's fine, we'll just use normal quality
+ _add_format(u'hq', hq_url)
+ except ExtractorError:
+ pass # That's fine, we'll just use normal quality
return {
'id': videoId,