From: Philipp Hagemeister Date: Sat, 20 Feb 2016 13:11:44 +0000 (+0100) Subject: [faz] Future-proof XML element check X-Git-Url: http://git.cielonegro.org/gitweb.cgi?p=youtube-dl.git;a=commitdiff_plain;h=9c86d509162fcf55eb328acb1c8d54b0de97e894 [faz] Future-proof XML element check --- 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({