1
0
mirror of https://codeberg.org/polarisfm/youtube-dl synced 2024-12-22 22:47:55 +01:00

[faz] Future-proof XML element check

This commit is contained in:
Philipp Hagemeister 2016-02-20 14:11:44 +01:00
parent 1d14c75f55
commit 9c86d50916

View File

@ -52,7 +52,7 @@ class FazIE(InfoExtractor):
formats = [] formats = []
for pref, code in enumerate(['LOW', 'HIGH', 'HQ']): for pref, code in enumerate(['LOW', 'HIGH', 'HQ']):
encoding = xpath_element(encodings, code) encoding = xpath_element(encodings, code)
if encoding: if encoding is not None:
encoding_url = xpath_text(encoding, 'FILENAME') encoding_url = xpath_text(encoding, 'FILENAME')
if encoding_url: if encoding_url:
formats.append({ formats.append({