aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor/faz.py
diff options
context:
space:
mode:
authorPhilipp Hagemeister <phihag@phihag.de>2016-02-20 14:11:44 +0100
committerPhilipp Hagemeister <phihag@phihag.de>2016-02-20 14:11:44 +0100
commit9c86d509162fcf55eb328acb1c8d54b0de97e894 (patch)
tree5f2872fffa384cf7a5d0e17df9ca43b65ff39f24 /youtube_dl/extractor/faz.py
parent1d14c75f55094484127dda641465b5333296d497 (diff)
downloadyoutube-dl-9c86d509162fcf55eb328acb1c8d54b0de97e894.tar.xz
[faz] Future-proof XML element check
Diffstat (limited to 'youtube_dl/extractor/faz.py')
-rw-r--r--youtube_dl/extractor/faz.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube_dl/extractor/faz.py b/youtube_dl/extractor/faz.py
index 6f9b003c2..fd535457d 100644
--- 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({