From: Sergey M․ Date: Wed, 10 Jun 2015 17:01:12 +0000 (+0600) Subject: [bilibili] Fix FutureWarning X-Git-Url: http://git.oshgnacknak.de/?a=commitdiff_plain;h=f98470df690d053e45691ede2751ab6a4063082b;p=youtube-dl [bilibili] Fix FutureWarning --- diff --git a/youtube_dl/extractor/bilibili.py b/youtube_dl/extractor/bilibili.py index 2103ed73a..bf60450c2 100644 --- a/youtube_dl/extractor/bilibili.py +++ b/youtube_dl/extractor/bilibili.py @@ -105,7 +105,7 @@ class BiliBiliIE(InfoExtractor): 'filesize': int_or_none( lq_durl.find('./size'), get_attr='text'), }] - if hq_durl: + if hq_durl is not None: formats.append({ 'format_id': 'hq', 'quality': 2,