浏览代码

[escapist] Fix syntax error

Philipp Hagemeister 12 年之前
父节点
当前提交
15ff3c831e
共有 1 个文件被更改,包括 5 次插入6 次删除
  1. 5 6
      youtube_dl/extractor/escapist.py

+ 5 - 6
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,