[FormatSort] Fix bug for audio with unknown codec

This commit is contained in:
pukkandan
2021-07-31 15:59:52 +05:30
parent e4f0275711
commit f5510afef0
2 changed files with 6 additions and 8 deletions

View File

@@ -1756,6 +1756,7 @@ class YoutubeDL(object):
if not allow_multiple_streams[aud_vid] and fmt_info.get(aud_vid[0] + 'codec') != 'none':
if get_no_more[aud_vid]:
formats_info.pop(i)
break
get_no_more[aud_vid] = True
if len(formats_info) == 1: