1
0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2025-06-27 17:08:32 +00:00

[ie/youtube] use casefold for _configuration_arg

This commit is contained in:
tcely 2025-06-10 11:46:41 -04:00 committed by GitHub
parent 6f0e44cffe
commit a49a2520fa
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -117,7 +117,7 @@ def _configuration_arg(self, key, default=NO_DEFAULT, *, casesense=False):
val = traverse_obj(self.settings, key)
if val is None:
return [] if default is NO_DEFAULT else default
return list(val) if casesense else [x.lower() for x in val]
return list(val) if casesense else [x.casefold() for x in val]
class BuiltinIEContentProvider(IEContentProvider, abc.ABC):