1
0
Fork 0

[FormatSort] Fix bug for audio with unknown codec

This commit is contained in:
pukkandan 2021-07-31 15:59:52 +05:30
commit f5510afef0
No known key found for this signature in database
GPG key ID: 0F00D95A001F4698
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: