[faz] Future-proof XML element check

pull/8614/merge
Philipp Hagemeister 9 years ago
parent 1d14c75f55
commit 9c86d50916

@ -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({

Loading…
Cancel
Save