mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-02 06:27:21 +00:00
use groups
This commit is contained in:
parent
2ae28147b0
commit
94aade999d
|
@ -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]
|
||||
|
||||
|
|
Loading…
Reference in a new issue