[bilibili] Fix FutureWarning

pull/2/head
Sergey M․ 10 years ago
parent eb8be1fe76
commit f98470df69

@ -105,7 +105,7 @@ class BiliBiliIE(InfoExtractor):
'filesize': int_or_none( 'filesize': int_or_none(
lq_durl.find('./size'), get_attr='text'), lq_durl.find('./size'), get_attr='text'),
}] }]
if hq_durl: if hq_durl is not None:
formats.append({ formats.append({
'format_id': 'hq', 'format_id': 'hq',
'quality': 2, 'quality': 2,

Loading…
Cancel
Save