commit 9c86d509162fcf55eb328acb1c8d54b0de97e894
parent 1d14c75f55094484127dda641465b5333296d497
Author: Philipp Hagemeister <phihag@phihag.de>
Date: Sat, 20 Feb 2016 14:11:44 +0100
[faz] Future-proof XML element check
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/youtube_dl/extractor/faz.py b/youtube_dl/extractor/faz.py
@@ -52,7 +52,7 @@ class FazIE(InfoExtractor):
formats = []
for pref, code in enumerate(['LOW', 'HIGH', 'HQ']):
encoding = xpath_element(encodings, code)
- if encoding:
+ if encoding is not None:
encoding_url = xpath_text(encoding, 'FILENAME')
if encoding_url:
formats.append({