Browse Source

[faz] Future-proof XML element check

master
Philipp Hagemeister 8 years ago
parent
commit
9c86d50916
1 changed files with 1 additions and 1 deletions
  1. 2
      youtube_dl/extractor/faz.py

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

Loading…
Cancel
Save