about summary refs log tree commit diff
path: root/youtube_dl/extractor/tagesschau.py
diff options
context:
space:
mode:
authorpulpe <Pulpan3@gmail.com>2014-06-06 09:00:28 +0200
committerpulpe <Pulpan3@gmail.com>2014-06-06 09:00:28 +0200
commita45e6aadd7c8aa42d769b9c0ee0c7d29258efcf1 (patch)
treed33c2d2a85b5080795b6c5d2093c1d773f782ce7 /youtube_dl/extractor/tagesschau.py
parent6a15923b77dc610b85810a15ce8a76f6688ed5e9 (diff)
downloadyoutube-dl-a45e6aadd7c8aa42d769b9c0ee0c7d29258efcf1.tar.gz
youtube-dl-a45e6aadd7c8aa42d769b9c0ee0c7d29258efcf1.tar.xz
youtube-dl-a45e6aadd7c8aa42d769b9c0ee0c7d29258efcf1.zip
[TagesschauIE] Fix possible error if quality is not defined
Diffstat (limited to 'youtube_dl/extractor/tagesschau.py')
-rw-r--r--youtube_dl/extractor/tagesschau.py2
1 files changed, 2 insertions, 0 deletions
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,