From 94aade999d04c49166ed79a2056be8e4731029d5 Mon Sep 17 00:00:00 2001 From: Lesmiscore Date: Wed, 27 Apr 2022 16:33:56 +0900 Subject: [PATCH] use groups --- yt_dlp/YoutubeDL.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yt_dlp/YoutubeDL.py b/yt_dlp/YoutubeDL.py index b0f88ba86e..d2c83c346f 100644 --- a/yt_dlp/YoutubeDL.py +++ b/yt_dlp/YoutubeDL.py @@ -2149,7 +2149,7 @@ def selector_function(ctx): mobj = re.match( r'(?Pmerge)?all(?Pvideo|audio)?(?Plang)?', format_spec) if mobj: - mg, tp, la = mobj.groups() + mg, tp, la = mobj.group('m', 't', 'l') def selector_function(ctx): formats = ctx['formats'][::-1]