Skip to content

A feature-rich command-line audio/video downloader

[TagesschauIE] Fix possible error if quality is not defined

pulpea45e6aadd7c8
diff --git a/youtube_dl/extractor/tagesschau.py b/youtube_dl/extractor/tagesschau.py
index fec1ff67e0..e2ad7c393c 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,