From a45e6aadd7c8aa42d769b9c0ee0c7d29258efcf1 Mon Sep 17 00:00:00 2001 From: pulpe Date: Fri, 6 Jun 2014 09:00:28 +0200 Subject: [PATCH] [TagesschauIE] Fix possible error if quality is not defined --- youtube_dl/extractor/tagesschau.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/youtube_dl/extractor/tagesschau.py b/youtube_dl/extractor/tagesschau.py index fec1ff67e..e2ad7c393 100644 --- a/youtube_dl/extractor/tagesschau.py +++ b/youtube_dl/extractor/tagesschau.py @@ -59,6 +59,8 @@ class TagesschauIE(InfoExtractor): elif res == 'l': res = 'large' quality = 2 + else: + quality = 0 formats.append({ 'format_id': res+'_'+ext, -- 2.30.2