mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-10 09:07:58 +01:00
[faz] Future-proof XML element check
This commit is contained in:
parent
1d14c75f55
commit
9c86d50916
1 changed files with 1 additions and 1 deletions
|
@ -52,7 +52,7 @@ def _real_extract(self, url):
|
|||
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…
Reference in a new issue