[TagesschauIE] Fix possible error if quality is not defined
authorpulpe <Pulpan3@gmail.com>
Fri, 6 Jun 2014 07:00:28 +0000 (09:00 +0200)
committerpulpe <Pulpan3@gmail.com>
Fri, 6 Jun 2014 07:00:28 +0000 (09:00 +0200)
youtube_dl/extractor/tagesschau.py

index fec1ff67e061577a063543605d7b971953e44e8a..e2ad7c393cb8ca1172bce18e6ae81d3a045da907 100644 (file)
@@ -59,6 +59,8 @@ class TagesschauIE(InfoExtractor):
             elif res == 'l':
                 res = 'large'
                 quality = 2
+            else:
+                quality = 0
 
             formats.append({
                 'format_id': res+'_'+ext,