]> gitweb @ CieloNegro.org - youtube-dl.git/commitdiff
[escapist] Fix syntax error
authorPhilipp Hagemeister <phihag@phihag.de>
Wed, 20 Nov 2013 05:55:07 +0000 (06:55 +0100)
committerPhilipp Hagemeister <phihag@phihag.de>
Wed, 20 Nov 2013 05:55:07 +0000 (06:55 +0100)
youtube_dl/extractor/escapist.py

index f9681fd436944ec7fa937d96e57a1d30ed63aefc..03ebb7c48ed1893c35222708cce809b43088771b 100644 (file)
@@ -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,