0
0
Fork 0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2024-11-23 02:25:11 +00:00

Fix case sensitivity of format selector

Bug introduced in f8d4ad9ab0
This commit is contained in:
pukkandan 2021-04-26 10:49:22 +05:30
parent b982cbdd0e
commit 598d185db1
No known key found for this signature in database
GPG key ID: 0F00D95A001F4698

View file

@ -1666,7 +1666,7 @@ def selector_function(ctx):
return [] return []
elif selector.type == SINGLE: # atom elif selector.type == SINGLE: # atom
format_spec = (selector.selector or 'best').lower() format_spec = selector.selector or 'best'
# TODO: Add allvideo, allaudio etc by generalizing the code with best/worst selector # TODO: Add allvideo, allaudio etc by generalizing the code with best/worst selector
if format_spec == 'all': if format_spec == 'all':