[bilibili] Fix FutureWarning
authorSergey M․ <dstftw@gmail.com>
Wed, 10 Jun 2015 17:01:12 +0000 (23:01 +0600)
committerSergey M․ <dstftw@gmail.com>
Wed, 10 Jun 2015 17:01:12 +0000 (23:01 +0600)
youtube_dl/extractor/bilibili.py

index 2103ed73aad860738bba5108ee27a86fd921d29c..bf60450c2f3753aa64d5ae11069bec98b67f23dc 100644 (file)
@@ -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,