diff --git a/yt_dlp/__init__.py b/yt_dlp/__init__.py index 3145a6f1b6..4ebdff2982 100644 --- a/yt_dlp/__init__.py +++ b/yt_dlp/__init__.py @@ -337,6 +337,7 @@ def parse_timestamp(x): for regex in value or []: if regex.startswith('*'): for range_ in map(str.strip, regex[1:].split(',')): + # FIXME: This is really sensible mobj = range_ != '-' and re.fullmatch(r'(.+)?\s*-\s*(.+)?', range_) dur = mobj and (parse_timestamp(mobj.group(1) or '0'), parse_timestamp(mobj.group(2) or 'inf')) if None in (dur or [None]):