removed formats without audio

这个提交包含在:
Hodza Alban 2017-08-08 08:20:46 +02:00 提交者 GitHub
父节点 99bb8bfaa9
当前提交 407cbdf7a6

查看文件

@ -50,8 +50,10 @@ def get_format(bot, update):
while True: # save the formats in the formats list while True: # save the formats in the formats list
try: try:
line = next(it) line = next(it)
if not line: # the last line is empty... if not line: # the last line usually is empty...
raise StopIteration raise StopIteration
if "video only" in line: # video without audio... why?
continue
except StopIteration: except StopIteration:
break break
else: else: