projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1d14c75
)
[faz] Future-proof XML element check
author
Philipp Hagemeister
<phihag@phihag.de>
Sat, 20 Feb 2016 13:11:44 +0000
(14:11 +0100)
committer
Philipp Hagemeister
<phihag@phihag.de>
Sat, 20 Feb 2016 13:11:44 +0000
(14:11 +0100)
youtube_dl/extractor/faz.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/faz.py
b/youtube_dl/extractor/faz.py
index 6f9b003c2b2f490094dde43098e8087062886a2f..fd535457dc56a589eaf9e062dc40fe5374735020 100644
(file)
--- 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({