Skip to content

A feature-rich command-line audio/video downloader

Fix case sensitivity of format selector Bug introduced in f8d4ad9ab00bca71808cd769c04806f51c3578f0

pukkandan598d185db10c
diff --git a/yt_dlp/YoutubeDL.py b/yt_dlp/YoutubeDL.py
index 5aea1b807c..48799369bb 100644
--- a/yt_dlp/YoutubeDL.py
+++ b/yt_dlp/YoutubeDL.py
@@ -1666,7 +1666,7 @@ class YoutubeDL(object):
return []
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
if format_spec == 'all':