use groups

This commit is contained in:
Lesmiscore 2022-04-27 16:33:56 +09:00
parent 2ae28147b0
commit 94aade999d
No known key found for this signature in database
GPG Key ID: 0EC2B52CF86236FF
1 changed files with 1 additions and 1 deletions

View File

@ -2149,7 +2149,7 @@ class YoutubeDL:
mobj = re.match(
r'(?P<m>merge)?all(?P<t>video|audio)?(?P<l>lang)?', 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]