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

View file

@ -2149,7 +2149,7 @@ def selector_function(ctx):
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]