瀏覽代碼

[extractor/common] Correct typo

Philipp Hagemeister 11 年之前
父節點
當前提交
daebaab692
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      youtube_dl/extractor/common.py

+ 1 - 1
youtube_dl/extractor/common.py

@@ -664,7 +664,7 @@ class InfoExtractor(object):
             elif line.startswith('#') or not line.strip():
             elif line.startswith('#') or not line.strip():
                 continue
                 continue
             else:
             else:
-                if last_info is none:
+                if last_info is None:
                     formats.append({'url': line})
                     formats.append({'url': line})
                     continue
                     continue
                 tbr = int_or_none(last_info.get('BANDWIDTH'), scale=1000)
                 tbr = int_or_none(last_info.get('BANDWIDTH'), scale=1000)