1
0
mirror of https://github.com/l1ving/youtube-dl synced 2024-12-22 22:02:53 +08:00

[bilibili] Fix FutureWarning

This commit is contained in:
Sergey M․ 2015-06-10 23:01:12 +06:00
parent eb8be1fe76
commit f98470df69

View File

@ -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,