diff --git a/yt_dlp/YoutubeDL.py b/yt_dlp/YoutubeDL.py index d2c83c346f..2cef3acfcd 100644 --- a/yt_dlp/YoutubeDL.py +++ b/yt_dlp/YoutubeDL.py @@ -2150,6 +2150,7 @@ def selector_function(ctx): r'(?Pmerge)?all(?Pvideo|audio)?(?Plang)?', format_spec) if mobj: mg, tp, la = mobj.group('m', 't', 'l') + def selector_function(ctx): formats = ctx['formats'][::-1]