未验证 提交 8cb7fc44 编写于 作者: P pukkandan

Fix `--check-formats`

Bug in bc344cd4
上级 3f796510
......@@ -2339,13 +2339,13 @@ def _merge(formats_pair):
return new_dict
def _check_formats(formats):
if (self.params.get('check_formats') is not None
if self.params.get('check_formats') == 'selected':
yield from self._check_formats(formats)
return
elif (self.params.get('check_formats') is not None
or self.params.get('allow_unplayable_formats')):
yield from formats
return
elif self.params.get('check_formats') == 'selected':
yield from self._check_formats(formats)
return
for f in formats:
if f.get('has_drm'):
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册