From: Philipp Hagemeister Date: Wed, 20 Nov 2013 05:55:07 +0000 (+0100) Subject: [escapist] Fix syntax error X-Git-Url: http://git.oshgnacknak.de/?a=commitdiff_plain;h=15ff3c831e6dbd6b99c932561d342b96676a47f0;p=youtube-dl [escapist] Fix syntax error --- 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,